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

(0.0/0.0).string is "NaN.0" in JS #736

Closed
gavinking opened this issue Aug 30, 2015 · 4 comments
Closed

(0.0/0.0).string is "NaN.0" in JS #736

gavinking opened this issue Aug 30, 2015 · 4 comments
Assignees
Milestone

Comments

@gavinking
Copy link
Member

Given:

print((0.0/0.0).string);

Ceylon JS prints:

NaN.0
@gavinking gavinking added this to the 1.2 milestone Aug 30, 2015
@FroMage FroMage closed this as completed in d47dffe Sep 2, 2015
@FroMage
Copy link
Member

FroMage commented Sep 2, 2015

Fixed.

@gavinking
Copy link
Member Author

Thanks, but the same bug is still there for infinity.string.

@FroMage
Copy link
Member

FroMage commented Sep 3, 2015

What, you mean you want every number to print correctly? But floats are infinite, how can I test them all?

@FroMage FroMage closed this as completed Sep 3, 2015
@gavinking
Copy link
Member Author

But floats are infinite

That's not true at all! There are only 2^64 tests you have to write!

Thanks :-)

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

2 participants