Hacker News new | ask | show | jobs
by lxgr 2 hours ago
> The only real correct solution here is to send mantissa and exponent as two separate integers.

That’s essentially the same thing as a String-serialized big decimal, just less readable, no?

1 comments

That’s quite a bit slower to process. At least if you’re converting to integers to do the calculations and the calculations would be quite a bit slower if you kept the big decimal type
True, but this is usually your least concern when you're dealing with monetary amounts/math.