Talk:Drink

From Kolmafia
Revision as of 03:52, 2 April 2010 by imported>Heeheehee
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About the use of floor() here: since amount is an int, the amount is already floored. I didn't know about this, but ashq int a = 0.9; print(a); will return 0.Slyz 16:52, 1 April 2010 (UTC)

Yeah, I realized that after the edit (technically, it truncates), but might as well use integers where it wants integers (avoid some confusion?). --Heeheehee 03:52, 2 April 2010 (UTC)