You're viewing a single thread.
View all comments
77
comments
AFAIK most typed languages have this behaviour.
15 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
You've viewed 77 comments.
Scroll to top