Floor

From Kolmafia
Revision as of 22:13, 10 March 2010 by imported>StDoodle
Jump to navigation Jump to search

Function Syntax

int floor(float number )

  • 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

ceil()