CEIL

Concept Link IconSee also

Convert a number to the smallest INTEGER greater than or equal to the value.

WebVue support - Yes.

Syntax

DblVal = CEIL(Num);

Return type: DOUBLE.

Argument

Meaning

Num

The value to be converted. Any numeric type.

Execution

The number is rounded up to the nearest INTEGER value that is greater than or equal to the given number.

Example

Copy
SUB Main() 
    DIM dblValue AS Double
    DIM dblResult AS Double

    dblValue = 125.2
    dblResult = Ceil(dblValue)
    PRINT("Ceil Result: ", dblResult)
    'Display "Ceil Result: 126"
END SUB