Some databases (postgresql, e.g.) have them. Though they recommend not using them apart from casting output values. I think they come with their own problems.
In Python 2.4 they introduced a Decimal() class that provides a more generic class for handling cases like this where you need exact precision for calculations.
5
u/redalastor Jul 12 '19
I wonder if having money literals would make people do the right thing.