Floor

This function rounds a numeric value down to the nearest multiple of a numeric factor.

Description

The floor numeric operation, to a multiple of a factor.

Type

NUMERIC

Arguments

Type

Meaning

1

NUMERIC

the value

2

NUMERIC

the factor

Evaluation

Converts the value into the units of the factor, then returns the largest integral multiple of the factor which is not greater than the converted value.

The returned value has the units of the factor.

Comments

Note that if the scalar portion of the factor is 1.0, then this function simply returns the floor ( ) of the value expressed in the units of the factor.

If the two arguments are of a different unit type, this function aborts the run with an error.

 
Floor("Wet Reservoir.Pool Elevation"[], 100.0 "ft")
 
If Wet Reservoir.Pool Elevation[] is 5343.35ft, then the above example will evaluate to 5300.0 ft