Math.abs

From Data Realms Wiki

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