Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

sign returns the sign of a number.

Parameter Description
x Number operated on

Example

Example 1: Get the sign of some values.

> (sign 3)
1
> (sign -3)
-1
> (sign 0)
1
Clone this wiki locally