...
Returns a floating point value which is greater than or equal to 0
Scroll pagebreak |
---|
Examples
Code Block | ||
---|---|---|
| ||
// Compute some absolute values |
...
float $absVal; |
...
$absVal = `fabs -5`; |
...
print $absVal; // Should be 5.000000 |
...
$absVal = `fabs -10.4520`; |
...
print $absVal; // Should be 10.452000 |
Additional information
Related commands
...