Rounds a value upward to the nearest integer.

Syntax

Result = SRP_Math("CEILING", Value, "", DecimalPlaces, ScientificNotation)

Returns

The ceiling of Value.

Remarks

The CEILING operation rounds Value upward to the nearest integer. You can specify CEIL for short.

Example

// Compute the ceiling of PI 
Val = "3.1415926535897932384626433832795" 
Result = SRP_Math("CEIL", Val) 
!! Result = 4.0 !! 
// Compute the ceiling of -PI 
Val = "-3.1415926535897932384626433832795" 
Result = SRP_Math("CEIL", Val) 
!! Result = -3.0 !!

 

 

  • No labels