ABS: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Command|syntax=[[Image:abs.png|ABS]]ABS <n> | [[:Category:Internal_Macro_Functions|{{Up}}]] | ||
|description=:Retuns the absolute value of the input | |||
{{Command|syntax=[[Image:abs.png|right|ABS]]ABS <n> | |||
|description=:Retuns the absolute value of the input. This is the numeric value without the sign. | |||
|param1=<n>|param1_desc={{n}} | |param1=<n>|param1_desc={{n}} | ||
Line 6: | Line 8: | ||
===Example=== | ===Example=== | ||
:ABS(r1/4) | :a1 = ABS(r1) | ||
:a2 = ABS(R1/4) | |||
:a3 = ABS(-1.23) | |||
[[Category:Internal_Macro_Functions]] | [[Category:Internal_Macro_Functions]] |
Latest revision as of 22:36, 30 July 2010
Command
- Retuns the absolute value of the input. This is the numeric value without the sign.
Parameters
- <n>
- Anything that evaluates to a number. This can be a variable, a number, another function, or an expression which includes numbers, variables and/or functions.
- For example:
- 123
- r1
- r2 + r3
- (r1 + (abs(a1 * a2) / (b3 * 62)))
Example
- a1 = ABS(r1)
- a2 = ABS(R1/4)
- a3 = ABS(-1.23)