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:acos}}
 
|+
 
{{:SHIP:Sail:acosh}}
 
|+
 
{{:SHIP:Sail:asin}}
 
|+
 
{{:SHIP:Sail:asinh}}
 
|+
 
{{:SHIP:Sail:atan}}
 
|+
 
{{:SHIP:Sail:atan2}}
 
|+
 
{{:SHIP:Sail:atanh}}
 
 
|+
 
|+
 
{{:SHIP:Sail:atoi}}
 
{{:SHIP:Sail:atoi}}
Line 21: Line 7:
 
|+
 
|+
 
{{:SHIP:Sail:ceil}}
 
{{:SHIP:Sail:ceil}}
|+
 
{{:SHIP:Sail:cos}}
 
|+
 
{{:SHIP:Sail:cosh}}
 
 
|+
 
|+
 
{{:SHIP:Sail:exp}}
 
{{:SHIP:Sail:exp}}
Line 49: Line 31:
 
|+
 
|+
 
{{:SHIP:Sail:round}}
 
{{:SHIP:Sail:round}}
|+
 
{{:SHIP:Sail:sin}}
 
|+
 
{{:SHIP:Sail:sinh}}
 
 
|+
 
|+
 
{{:SHIP:Sail:sqrt}}
 
{{:SHIP:Sail:sqrt}}
|+
 
{{:SHIP:Sail:tan}}
 
|+
 
{{:SHIP:Sail:tanh}}
 
 
|+
 
|+
 
{{:SHIP:Sail:toRadians}}
 
{{:SHIP:Sail:toRadians}}

Revision as of 14:19, 4 October 2016

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
exp Float v5.1.0 Return e to the given power
expm1 Float v5.1.0 Return e to the given power minus 1
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
log Float v5.1.0 Return the natural log of a number
log10 Float v5.1.0 Return the base 10 log of a number
log1p Float v5.1.0 Return the natural log of a number + 1
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
pow Float v5.1.0 Calculates x to the power of y (x^y)
round Integer v5.0 Gets the nearest integer to a number
sqrt Float v5.1.0 Calculates the square root of a number (√n)
toRadians Float v5.1.0 Convert degrees to radians
toDegrees Float v5.1.0 Convert radians to degrees
towards Float/Integer v5.0.207 Adjusts a number by a percentage in a range towards another number

See Also: