Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Sign - method of object Pm

Description:
Returns an integer indicating the sign of a number.
Syntax:
Sign(nValue As Double) As Long
Calling:
n = Pm.Sign(nValue)
Parameters:
nValue(Double) Any valid numeric expression.
Return Values:
1 - greater than 0
0 - equal 0
-1 - less than 0
Note:
The method can also be called in the graphic item events for Web Panels.

The method is functional also in Macro expression $.expr.

Example:
Dim nVar1, nVar2, nVar3, nSign
nVar1 = 12: nVar2 = -2.4: nVar3 = 0
nSign = Pm.Sign(nVar1) 'Returns 1
nSign = Pm.Sign(nVar2) 'Returns -1
nSign = Pm.Sign(nVar3) 'Returns 0
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sign
 
 
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice