Difference between revisions of "MC-Basic:SGN"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:SGN to MC-Basic:SGN: Global renaming of Axystems: namespace into (Main):)
Line 43: Line 43:
 
|SEE ALSO=
 
|SEE ALSO=
  
[[Category:Axystems:MC-Basic:Arithmetic Functions|SGN]]
+
[[Category:MC-Basic:Arithmetic Functions|SGN]]
  
 
}}
 
}}

Revision as of 09:12, 22 May 2014

This function returns the sign of the expression.

If <expression> is positive, SGN returns +1

If <expression> is zero, SGN returns 0.

If <expression> is negative, SGN returns -1

Syntax

SGN(<expression>)

Availability

All versions

Type

Double

Range

± Max Double

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

?SGN(Var1)

I = SGN(Var2)

See Also