Update cookies preferences
Promotic

Ceil - method of the Pm object

Description:
Returns the smallest integer greater or equal to a given number.
Syntax:
Double Ceil(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.Ceil(3.14);   // Returns 4
n = Pm.Ceil(-3.14);   // Returns -3
n = Pm.Ceil(0.04);   // Returns 1
n = Pm.Ceil(-0.04);   // Returns 0
n = Pm.Ceil(7);   // Returns 7
n = Pm.Ceil(-7);   // Returns -7

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

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