2 ms·
What are the consequences of using rational numbers by default? I can imagine unexpected bloat when large arrays are in use that you expected to contain native
by kevin_thibedeau 12y ago
What are the consequences of using rational numbers by default? I can imagine unexpected bloat when large arrays are in use that you expected to contain native floats but are now a more complex object.
- perlgeek 12y agoYou only get compact storage if you declare the array with a type constraint on the elements, so at that point you start to actively think about the numeric type, and can still convert to floating point if that's what you want.