Topic complex |
Numerical functions |
Function |
abs() |
Short |
Returns the absolute value of a number |
Syntax |
ABS(NV : REAL) : REAL |
Parameter |
NV : numeric expression |
Return |
NV, for NV>=0
-NV, for NV < 0 |
See also: |
|
Description |
|
Example 1: Abs
Does the paid salary differ to the treshold?
VAR mean_value, salary, threshold : REAL
...
IF ABS(mean_value-salary)>threshold THEN
// unjust salary
END
|
Write a comment:
|