All programming languages, including JavaScript, have difficulties with precise floating point values.
To solve the problem, it helps to multiply and divide: