Perl Programming/Keywords/abs

Previous: __PACKAGE__ Keywords Next: accept

The abs keywordEdit

Function abs returns the absolute value of VALUE, or of $_, if VALUE is omitted.

SyntaxEdit

  abs VALUE
  abs

ExamplesEdit

  The code
print abs(-21.7*.36);
returns with
7.812


Previous: __PACKAGE__ Keywords Next: accept