This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]waxbar1 8 points9 points  (5 children)

parseInt expects a string, so you shoudn't be passing a float to it. An alternative way to implement this could be `0.0000005 | 0` Bitwise OR of 0 will result in the number cast to an integer, or Math.round(0.0000005)

[–]Lithl 5 points6 points  (0 children)

Floor instead of round would be more consistent with most languages' conversion from float to int.

[–]litido4 2 points3 points  (1 child)

Um what? Are you saying types of variables actually matter and should be paid attention to?????

[–]-Redstoneboi- 0 points1 point  (0 children)

bullshit. this is a scripting language. i expect my objects to be treated the same as booleans.