Talk:Drink: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Fxer
m nevermind
imported>Heeheehee
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
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.[[User:Slyz|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?). --[[User:Heeheehee|Heeheehee]] 03:52, 2 April 2010 (UTC)

Latest revision as of 03:52, 2 April 2010

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)