Difference between revisions of "SHIP:Sail:floor"

From Serious Documentation
Jump to: navigation, search
Line 7: Line 7:
 
*[[SHIP:Sail|Sail Home]]
 
*[[SHIP:Sail|Sail Home]]
 
*[[SHIP:Sail:Functions|Sail Functions]]
 
*[[SHIP:Sail:Functions|Sail Functions]]
*[[SHIP:Sail:Functions|Sail Numeric Functions]]
+
*[[SHIP:Sail:Numeric Functions|Sail Numeric Functions]]
 
*{{SailFunc|abs}}, {{SailFunc|ceil}}, {{SailFunc|ftoi}}, {{SailFunc|itof}}, {{SailFunc|max}}, {{SailFunc|min}}, {{SailFunc|round}}
 
*{{SailFunc|abs}}, {{SailFunc|ceil}}, {{SailFunc|ftoi}}, {{SailFunc|itof}}, {{SailFunc|max}}, {{SailFunc|min}}, {{SailFunc|round}}
 
== Prototype ==
 
== Prototype ==

Revision as of 08:23, 13 July 2014

Function Returns Introduced Description
floor Integer 1 Gets the largest integer less than or equal to a number Badge SHIPv5.gif

This function was introduced in SHIP Version 5.0.

See Also

Prototype

Integer floor(Float n);

Parameters/Return Value

Parameter Data Type Description
n Float the number to find the floor value of
Return Integer the floor (lower) of the supplied number

Detailed Description

The floor() function returns the returns the largest integer less than or equal to a number. If you visualize a number line, floor() goes to the integer to the left.

Examples

Example Result Notes
floor(-5.1f); -6
floor(5.2f); 5