Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Ceil - method of object Pm

Description:
Returns the smallest integer greater than or equal to a given number.
Syntax:
Ceil(nValue As Double) As Integer
Calling:
n = Pm.Ceil(nValue)
Parameters:
nValue(Double) A number.
Note:
The method can also be called in the graphic item events for Web panels.

The method is functional also in Macro expression $.expr and in the onDraw event of the PmiCanvas graphic item.

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
PROMOTIC 9.0.0 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.Tavičská 845/21 703 00 Ostrava-Vítkovice