411 REFERENCE · Wikibooks
Perl Programming/Keywords/abs
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl __PACKAGE__ accept Keywords
The abs keyword
Function abs returns the absolute value of VALUE, or of $_, if VALUE is omitted.
Syntax
abs VALUE
abs
Examples
The code
print abs(-21.7*.36); returns with 7.812
Perl __PACKAGE__ accept Keywords
</noinclude>