Adding, subtraction, multiplication and division for long digit in JavaScript may not give correct answer.
So, I create math function solve those problem.
Here you can try this codepen: https://codepen.io/gauravnumber/pen/RwLaePQ
Source code of repo here:
https://github.com/gauravnumber/math-code
Currently math-code support addition, subtraction, multiplication, divison, <, >, <=, >=, =, !=
Floating digit also.
You can multiply 30, 50 digit using decimal number with high accuracy.
Top comments (4)
Javascript can natively handle integers like this just fine with
BigInt
s:But in math-code you can solve 500 digit number also.
Tell me your terminal configuration bro?
I use zsh shell with ohmyzsh framework added zsh-autocomplete plugin