Talk:Drink

From Kolmafia
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)