Math.abs

From Data Realms Wiki

Revision as of 13:00, 31 March 2009 by Daman (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
SyntaxMath.abs( Number Value )
Description:
Returns the Absolute value of the number
ReturnsNumber




Example
DescriptionPrints the absolute value of -2
Code
  1. AbsNum = Math.abs(-2)
  2. print(AbsNum)
Output2
Personal tools