Floor: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle No edit summary |
imported>StDoodle mNo edit summary |
||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function_category=| | function_category=Math and Numbers| | ||
function1={{Function| | function1={{Function| |
Revision as of 22:13, 10 March 2010
Function Syntax
- number is the number to find the floor of
This is the floor function, which returns the largest integer less than or equal to the supplied number.
Code Sample
int purse_rat_ML = floor( familiar_weight($familiar[ purse rat ])/2 )
print( "Your squeaky little buddy is currently generating " + purse_rat_ML + " extra ML!" );
See Also