Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Floor - method of object Pm

Description:
Returns the largest integer less than or equal to a given number.
Syntax:
Floor(nValue As Double) As Integer
Calling:
n = Pm.Floor(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.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
PROMOTIC 9.0.0 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.Tavičská 845/21 703 00 Ostrava-Vítkovice