Difference between revisions of "Documentation/How Tos/Calc: ABS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m |
||
Line 3: | Line 3: | ||
== ABS == | == ABS == | ||
Returns the absolute value of a number. | Returns the absolute value of a number. | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 9: | Line 8: | ||
: <tt>'''number'''</tt> is the number whose absolute value is to be calculated. The absolute value of a number is its value without the +/- sign. | : <tt>'''number'''</tt> is the number whose absolute value is to be calculated. The absolute value of a number is its value without the +/- sign. | ||
− | |||
=== Example: === | === Example: === | ||
Line 20: | Line 18: | ||
<tt>'''ABS(0)'''</tt> | <tt>'''ABS(0)'''</tt> | ||
: returns <tt>'''0'''</tt>. | : returns <tt>'''0'''</tt>. | ||
− | |||
=== See also: === | === See also: === |
Revision as of 07:01, 2 March 2008
ABS
Returns the absolute value of a number.
Syntax:
ABS(number)
- number is the number whose absolute value is to be calculated. The absolute value of a number is its value without the +/- sign.
Example:
ABS(-56)
- returns 56.
ABS(12.3)
- returns 12.3.
ABS(0)
- returns 0.