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
syntax/functions/sign.1426866410.txt.gz · Last modified: 2015/03/20 11:46 by elenap

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki