Skip to content
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

should fix floating number precision (IEEE 754) #14

Open
shhider opened this issue Jul 10, 2020 · 2 comments
Open

should fix floating number precision (IEEE 754) #14

shhider opened this issue Jul 10, 2020 · 2 comments

Comments

@shhider
Copy link

shhider commented Jul 10, 2020

eg. 0.1+0.2 should be 0.3

image

@lidangzzz
Copy link
Member

Thanks for your feedback...I noticed that and I'm thinking about a better approach to handle it...

@AGDholo
Copy link
Member

AGDholo commented Jul 22, 2020

It seems that the current compiler simply runs the contents of print () on the browser side.
If we want to do special processing for numeric operations, I think we should consider adding a method, or extra formatting of the print () function.

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

No branches or pull requests

3 participants