Math.Floor(Value)
.Floor() method rounds down to the next lower integer. The Functions and Operators equivalent is FLOOR(nExpression).
Applies To
Properties and Methods
None
Available
The .Floor(Value) method is available in:
- 15.03.016
- All newer builds
Type
Decimal
Syntax
Math.Floor(Value);
Parameters
|
Parameter |
Required |
Description |
|---|---|---|
|
Value |
Yes |
Any data that can be evaluated as a number. If the value cannot be evaluated as a number, then DEACOM will throw a scripting error. |
Example
Event.Form.MessageBox('Math.Floor(5.05): ' + Math.Floor(5.05) +
'\nMath.Floor(-5.05): ' + Math.Floor(-5.05) +
'\nMath.Floor(9.99): ' + Math.Floor(9.99));
/* Expected Prompt Result:
Math.Floor(5.05): 5
Math.Floor(-5.05): -6
Math.Floor(9.99): 9
*/