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

Floating point is broken #3

Closed
GoogleCodeExporter opened this issue Mar 12, 2015 · 3 comments
Closed

Floating point is broken #3

GoogleCodeExporter opened this issue Mar 12, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. int a = 12.34;
2. printf("%f\n", a);

Results in an infinite loop printing "0"s.

Original issue reported on code.google.com by zik.sale...@gmail.com on 26 May 2009 at 10:03

@GoogleCodeExporter
Copy link
Author

Original comment by zik.sale...@gmail.com on 26 May 2009 at 10:08

  • Added labels: Priority-High
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

Problem with floating point printing is fixed.
Another problem with lexing floating point numbers is also fixed.
A third problem with integer coercion of floating point numbers was fixed.

Still outstanding: a problem with evaluating floating point numbers causing 
quiet
program exit.

eg. 
float a = 12.34;
printf("test\n");

"test" will not be displayed

Original comment by zik.sale...@gmail.com on 27 May 2009 at 1:03

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Fixed a problem in string lexing which was appearing to be an issue with 
floating point. 
Fixed a problem with printing negative numbers.
Fixed a problem with prefix FP expressions not working.
Added a floating point regression test.
All seems ok now.

Original comment by zik.sale...@gmail.com on 27 May 2009 at 4:02

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant