You're viewing a single thread.
All Comments
75 comments
AFAIK most typed languages have this behaviour.
16 0 ReplyBecause ints are way smaller. Over a certain value it would always fail.
4 0 ReplyYea but at those values floating points can't represent fractions anyway
1 0 ReplyExactly. So if cast to int you'd either get an error or 0 for everything above a certain value.
1 0 Reply
75 comments
Scroll to top