Really excited to see what possibilities for number handling native BigInt in JavaScript will bring
IBM has had a solution for a long time: http://speleotrove.com/decimal/
Python uses it: https://docs.python.org/3.5/library/decimal.html
Get a proper decimal library, and then you can devote brain cells to actual problems. The IBM link above includes links to libraries that do it right.