Difference between revisions of "Floor"

From Kolmafia
Jump to navigation Jump to search
imported>Out of practice
(Created page, discription of floor() function, example using the Purse Rat ML calculation)
 
imported>StDoodle
m (moved Floor() to Floor)
(No difference)

Revision as of 22:09, 2 March 2010

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!" );