Ask HN: Ruby, not loosely typed enough?
1 comments
because integer and float math are very different.
because for some, 1/3 should not be a float but a ratio. if precision matters, you need ratios not floats. however if you just want speed, you want floats.
because for some, 1/3 should not be a float but a ratio. if precision matters, you need ratios not floats. however if you just want speed, you want floats.
Why does Ruby have explicit integer and float classes instead of just one numeric class? I understand the precision has to cut off somewhere, but having to handle this int vs float is just silly.