Ceil# (float)  

Definition:

Rounds a decimal floating variable up to the nearest whole number.

Parameter Description:


float=floating point number

Command Description:

Many times, you will need to round up or down a floating point decimal variable. This command rounds it up to the nearest whole number. Use Floor# to round the number down.

Example:

; Floor#/Ceil# Example

; Set a floating point variable
myVal#=0.5

; Round it up
Print Floor#(myval)

;Round it down
Print Ceil#(myval)

Index