syntax:functions:sign
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:sign [2016/06/20 11:58] – dmitry | syntax:functions:sign [2021/08/11 15:35] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Sign(number) ===== | + | ====== Sign(number) ====== |
+ | Category: | ||
- | Sign of a number. The sign of a number is 1 when the number is positive, | + | \\ |
+ | =====Description===== | ||
+ | This function determines whether //number// is positive, | ||
- | ^ | + | \\ |
- | | sign(0 - 85) | + | =====Arguments===== |
- | | sign(0) | + | ^Argument^Type^Description^ |
- | | sign(125.1231) | + | |number|Number|The value being tested as positive, negative or zero.| |
+ | \\ | ||
+ | **Return value type: | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | An expression that results in a numeric answer can be used as the //number// argument. | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | sign(27) //Returns 1 | ||
+ | |||
+ | sign(-42) // | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | sign(88 * 0) //Returns 0 | ||
+ | |||
+ | sign(12 * 3) // | ||
- | Note: keep in mind that EasyMorph doesn' |
syntax/functions/sign.1466438303.txt.gz · Last modified: 2016/06/20 11:58 by dmitry