Skip to content

Fix toFixed bug #1511 #1550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2016
Merged

Conversation

obastemur
Copy link
Collaborator

print(1.25499999999999989342.toFixed(2));
print(1.255.toFixed(2));

Code above should print 1.25 while it was printing 1.26

Fixes #1511

print(1.25499999999999989342.toFixed(2));
print(1.255.toFixed(2));

should print 1.25 while it was printing 1.26
@dilijev
Copy link
Contributor

dilijev commented Sep 7, 2016

LGTM

@obastemur
Copy link
Collaborator Author

@dotnet-bot test this please

@obastemur
Copy link
Collaborator Author

@dotnet-bot test Ubuntu ubuntu_linux_release please.

@chakrabot chakrabot merged commit 7fcc80e into chakra-core:master Sep 9, 2016
chakrabot pushed a commit that referenced this pull request Sep 9, 2016
Merge pull request #1550 from obastemur:tofixed_bug

```
print(1.25499999999999989342.toFixed(2));
print(1.255.toFixed(2));
```

Code above should print 1.25 while it was printing 1.26

Fixes #1511
@obastemur
Copy link
Collaborator Author

@dilijev Thanks for the review

@obastemur obastemur deleted the tofixed_bug branch November 15, 2016 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants