Promotic

Floor - method of the Pm object

Description:
Returns the largest integer less or equal to a given number.
Syntax:
Double Floor(Double nValue)
Parameters:
nValue(Double) A number.
Note:
This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.
This method is also functional in Web panels.
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

History:
Pm8.03.26: Created
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- Floor
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.