Floor

From Kolmafia
Revision as of 22:09, 2 March 2010 by imported>StDoodle (moved Floor() to Floor)
Jump to navigation Jump to search

int floor( float )

Rounds a float variable down to the closest integer beneath it.

For example:

int purse_rat_ML = floor( familiar_weight($familiar[109])/2 );
print( "Your squeaky little buddy is currently generating "+purse_rat_ML+" ML in aggression from monsters!" );