You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Rounds a value downward to the nearest integer.

Syntax

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

Returns

The floor of Value.

Remarks

The FLOOR operation rounds Value downward to the nearest integer.

Example

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

 

 

  • No labels