Table of Contents

Abs

Format

abs ( expression )

Description

Returns the absolute value of a numeric expression.

Example

print abs(-45)
print abs(6.45)

will print

45
6.45
 
en/abs.txt · Last modified: 2010/07/01 05:37 by renejm
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki