Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.
This routine is available starting with SIL Engine™ 2.5.
Determines the sign of a number (signum).
Returns 1 if the number is positive, zero (0) if the number is 0, and -1 if the number is negative.
|number||Number||Yes||Any real number.|
number a = sign(3); print("a= " + a); number b = sign(-4); print("b= " + b); number c = sign(3-3); print("b= " + c);