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

From Serious Documentation
Jump to: navigation, search
(Created page with "{{SailFuncTableStart|}} {{:SHIP:Sail:abs}} |+ {{:SHIP:Sail:ceil}} |+ {{:SHIP:Sail:floor}} |+ {{:SHIP:Sail:ftoi}} |+ {{:SHIP:Sail:itof}} |+ {{:SHIP:Sail:max}} |+ {{:SHIP:Sail:m...")
 
Line 1: Line 1:
{{SailFuncTableStart|}}
+
<onlyinclude>{{SailFuncTableStart|}}
 
{{:SHIP:Sail:abs}}
 
{{:SHIP:Sail:abs}}
 
|+
 
|+
Line 15: Line 15:
 
|+
 
|+
 
{{:SHIP:Sail:round}}
 
{{:SHIP:Sail:round}}
|}
+
|}</onlyinclude>

Revision as of 08:14, 13 July 2014

Function Returns Introduced Description
abs Integer/Float v4.0 Gets the absolute value of a number
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