javascript - facing an issue with parseFloat when input is more than 16 digits -


i facing weird issued.

parsefloat(11111111111111111) converts 11111111111111112.

i noticed works fine till length 16 rounds off higher when input length > 16.

i want retain original value passed in parsefloat after executed.

any help?

integers (numbers without period or exponent notation) considered accurate 15 digits.

more information here


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -