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

From Serious Documentation
Jump to: navigation, search
Line 23: Line 23:
 
|+
 
|+
 
{{:SHIP:Sail:log1p}}
 
{{:SHIP:Sail:log1p}}
 +
|+
 +
{{:SHIP:Sail:mapRange}}
 
|+
 
|+
 
{{:SHIP:Sail:max}}
 
{{:SHIP:Sail:max}}

Revision as of 09:07, 5 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
mapRange Integer v5.1.0 Maps a number from range A to range B.
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: