2 ms·
from decimal import Decimal n = Decimal("1.0000000000000000000000000000001") just because float is the default, doesn't mean you have to use it. JSON doesn't
by icebraining 11y ago
from decimal import Decimal
n = Decimal("1.0000000000000000000000000000001")
just because float is the default, doesn't mean you have to use it. JSON doesn't have anything else, though.
- orless 11y agoJSON does not have float (nor double) either. JSON has JSONNumber.