3 ms·
I suspect most languages use floats because they come built in and have reasonably sensible behavior. Implementing a big decimal with feature-parity with float
by bee_rider 3y ago
I suspect most languages use floats because they come built in and have reasonably sensible behavior.
Implementing a big decimal with feature-parity with floats is going to be a big pain.
Anyway, what about irrational numbers?
Python does big ints by default. Giving up at E-1 seems like a reasonably pragmatic but arbitrary choice.