A
A
Alexander Solovey2020-08-03 11:50:38
Node.js
Alexander Solovey, 2020-08-03 11:50:38

Why is the sum of the numbers 18014398509481984 and 18014398509481984 equal to 36028797018963970 in Javascript?

I came across the calculation difference between PHP(and also Python) and javascript. I tried this sum of numbers in PHP and in Phyton, where this sum is equal to 36028797018963968.
But in javascript for some reason it is equal to
36028797018963970

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-08-03
@naghtigall

start here https://developer.mozilla.org/en-US/docs/Web/JavaS...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question