Floor - method of the Pm object
Description:
Returns the largest integer less then or equal to a given number.
Syntax:
Double Floor(Double nValue)
Example:
JavaScriptVBScriptSelect and copy to clipboard
var n;
n = Pm.Floor(3.14);
// Returns 3
n = Pm.Floor(-3.14);
// Returns -4
n = Pm.Floor(0.04);
// Returns 0
n = Pm.Floor(-0.04);
// Returns -1
n = Pm.Floor(7);
// Returns 7
n = Pm.Floor(-7);
// Returns -7
Dim n
n = Pm.Floor(3.14)
' Returns 3
n = Pm.Floor(-3.14)
' Returns -4
n = Pm.Floor(0.04)
' Returns 0
n = Pm.Floor(-0.04)
' Returns -1
n = Pm.Floor(7)
' Returns 7
n = Pm.Floor(-7)
' Returns -7