Math.abs

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
Daman (Talk)
(Example formatted.)

Latest revision as of 13:00, 31 March 2009

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