1

I am making a calculator in JavaScript that needs to be able to do precise math on numbers larger than 2^53, which is 9007199254740992. Is there any way to do this?

Alexcamostyle
  • 3,623
  • 4
  • 14
  • 13

1 Answers1

0

You can use the "strint" library https://github.com/rauschma/strint. For example:

    > var strint = require("./strint");
    > strint.add("9007199254740992", "1")
    '9007199254740993' 
Aram
  • 221
  • 1
  • 4