Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns a floating point value which is greater than or equal to 0

Scroll pagebreak

Examples

Code Block
languagetext
// 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

...