Hi Mozilla Community,
I just tried decimal calculations in JavaScript and C# and noticed that the JavaScript calculations are inaccurate for numbers with 17 or more digits. But it is accurate in C#. Take a look at the examples and screenshots for reference. Here’s my question: Is it possible to calculate decimal numbers in JavaScript with the same accuracy as in C#?
Sample: https://stackblitz.com/edit/js-ulm42k?file=index.js,index.html
Screenshot:
Javascript
C#