chakra-core / chakra-core/ChakraCore

Number format: 1.4e-3 .toExponential(1) returns "1.3e-3"

Open
#6,095 0 comments 1 reaction 1 assignee Claimed by @wyrichte View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

The following expression, when typed into console, or as part of script:

1.4e-3 .toExponential(1)
returns value:

"1.3e-3"
expected output is:

"1.4e-3"

I have seen some other issues related to number formatting reported here, those are already fixed. However, this one is not fixed.

I'm using
Microsoft Edge 44.17763.1.0
Microsoft EdgeHTML 18.17763

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.