Difference between revisions of "SHIP:Sail:Numeric Functions"

From Serious Documentation
Jump to: navigation, search
Line 1: Line 1:
 
<onlyinclude>{{SailFuncTableStart|}}
 
<onlyinclude>{{SailFuncTableStart|}}
 
{{:SHIP:Sail:abs}}
 
{{:SHIP:Sail:abs}}
 +
|+
 +
{{:SHIP:Sail:atoi}}
 +
|+
 +
{{:SHIP:Sail:atof}}
 
|+
 
|+
 
{{:SHIP:Sail:ceil}}
 
{{:SHIP:Sail:ceil}}

Revision as of 15:27, 29 July 2014

Function Returns Introduced Description
abs Integer/Float v4.0 Gets the absolute value of a number
atoi Integer v5.0.120 Parses a String to get an Integer from it
atof Float v5.0.120 Parses a String to get an Float from it
ceil Integer v5.0 Gets the smallest integer greater than or equal to a number
floor Integer v5.0 Gets the largest integer less than or equal to a number
ftoi Integer v5.0 Casts a Float to an Integer
itof Integer v5.0 Explicitly casts an Integer to a Float
max Integer/Float v4.0 Gets the maximum value of two or more numbers
min Integer/Float v4.0 Gets the minimum value of two or more numbers
round Integer v5.0 Gets the nearest integer to a number

See Also: