by AlexAndScripts · 2y ago · 0 comments
Thanks for pointing out the floats issue. It'll probably be OK because I round to the nearest integer when displaying and only use the extra precision for sorting, but I might round to 2dp on the server side to avoid wasting bandwidth on all those zeroes - I presume floating point imprecision compresses poorly.
decimal.Decimal in Python
java.math.BigDecimal
I don't know if there's an idiomatic way to use this datatype in JavaScript / Node.