syntax:functions:abs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:abs [2015/03/20 11:01] – elenap | syntax:functions:abs [2021/08/11 15:13] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Abs(number) ====== | ====== Abs(number) ====== | ||
+ | Category: | ||
- | Absolute value. | + | \\ |
- | Absolute value describes | + | =====Description===== |
+ | This function returns the __absolute value__ of //number// which is the distance of a number on the number line, from 0, without considering which direction the number lies | ||
- | ^ Example | + | The absolute value of a number is never negative. |
- | | abs(5 - 20) | 15 | | + | |
- | | abs(0 - 5) | + | |
- | Note: keep in mind that EasyMorph doesn' | + | \\ |
+ | =====Arguments===== | ||
+ | ^Argument^Type^Description^ | ||
+ | |number|Number|The value from which the unsigned absolute value is determined.| | ||
+ | \\ | ||
+ | **Return value type:** Number | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | Unlike some other functions which implicitly convert date values to date serial values before evaluating, passing a date value into this function will result | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | abs(10) //Returns 10 | ||
+ | |||
+ | abs(-5) //Returns 5 | ||
+ | |||
+ | abs(40.5) //Returns 40.5 | ||
+ | |||
+ | abs(0) //Returns 0 | ||
+ | |||
+ | abs(10*100) //Returns 1000 (Passing | ||
+ | |||
+ | abs({MyNum}*[MyVal]) //Returns 15 ({MyNum}=5, [MyVal]=3; parameters are supported) | ||
+ | |||
+ | abs(# |
syntax/functions/abs.txt · Last modified: 2021/08/11 15:13 by craigt