SHIP:Sail:abs

From Serious Documentation
Revision as of 17:26, 6 December 2012 by Admin (talk | contribs) (Examples)
Jump to: navigation, search

See Also:

abs

Gets the absolute value of a number.

Prototype

Integer abs(Integer number);

Parameters/Return Value

Parameter Data Type Description
number Integer The number to take the absolute value of
Return Integer the absolute value of "number"

Detailed Description

The abs(number) function returns the absolute value of the specified number.

Examples

Example Result Notes
abs(-5); 5
abs(0); 0
abs(6); 6