FLOOR

Concept Link IconSee also

Convert a number to the largest INTEGER less than or equal to the value.

WebVue support - Yes.

Syntax

DblVal = FLOOR(Num);

Return type: DOUBLE.

Argument

Meaning

Num

The value to be converted. Any numeric type.

Execution

The number is rounded down to the nearest INTEGER value that is less than or equal to the given number.

Example

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

    dblValue = 125.8
    dblResult = Floor(dblValue)
    PRINT("Floor Result: ", dblResult)
    'Display "Floor Result: 125"
END SUB