I have big numbers coming from the backend service in my JS application. I don't want to lose any of the digits after the decimal place.
However, when a number like 999999999999999.99 is assigned to a variable in JS, it rounds it to 1000000000000000 and 99999999999999.99 turns to 99999999999999.98.
Both numbers are within the limits. i.e. less than Number.MAX_SAFE_INTEGER
See the above in action in the screenshot below:
Can anybody shed some light on it, please?