Skip to content

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