This shows you the differences between two versions of the page.
en:abs [2016/08/12 12:15] admin |
en:abs [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Abs (Function) ===== | ||
- | |||
- | ==== Format ==== | ||
- | |||
- | **abs** ( [[numericexpressions|numeric_expression]] ) | ||
- | |||
- | returns [[floatexpressions|float_expression]] | ||
- | |||
- | ==== Description ==== | ||
- | |||
- | Returns the absolute value of a numeric [[expressions|epression]]. | ||
- | |||
- | ==== Example ==== | ||
- | |||
- | < | ||
- | print abs(-45) | ||
- | print abs(6.45) | ||
- | </ | ||
- | will print | ||
- | < | ||
- | 45 | ||
- | 6.45 | ||
- | </ | ||
- | |||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||