You are on page 1of 1

Built-In Functions

Example Files:

None

Also See:

realloc(), free(), malloc()

CEIL()
Syntax:

result = ceil (value)

Parameters:

value is a float

Returns:

A float

Function:

Computes the smallest integral value greater than the


argument. CEIL(12.67) is 13.00.

Availability:

All devices

Requires

#include <math.h>

Examples:

// Calculate cost based on weight rounded


// up to the next pound
cost = ceil( weight ) * DollarsPerPound;

Example Files:

None

Also See:

floor()

CLEAR_INTERRUPT()
Syntax:

clear_interrupt(level)

Parameters:

level a constant defined in the devices.h file

Returns:

undefined

95

You might also like