|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > Lang > abs()
abs() - The abs Function
Usage: abs(value)
Description: Returns the absolute value of the given number. If the given number is of
type integer then an integer value is returned. If the given number is of
type floating-point then a floating-point value is returned.
Example:var a = -3;
var b = Lang.abs(a); // b = 3
Bookmark this page
|
|