Floor

From Kolmafia
Revision as of 15:34, 7 March 2010 by imported>StDoodle
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!" );

Formatting Needed