User Tools

Site Tools


syntax:functions:sign

This is an old revision of the document!


Sign(number)

Sign of a number. The sign of a number is 1 when the number is positive, and −1 when the number is negative. The number zero is neither positive nor negative, and therefore has no sign.

Example Result
sign(0 - 85) -1
sign(0) 0
sign(125.1231) 1

Note: keep in mind that EasyMorph doesn't support unary minus in expressions - see Example 1 above.

syntax/functions/sign.1427472843.txt.gz · Last modified: 2015/03/27 12:14 by elenap

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki