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

Potential additions to float module docs #783

Open
mooreryan opened this issue Dec 29, 2024 · 1 comment
Open

Potential additions to float module docs #783

mooreryan opened this issue Dec 29, 2024 · 1 comment

Comments

@mooreryan
Copy link
Contributor

I think it may be helpful to include similar language in the float module as is present in the tour regarding infinities and nan.

The tour has this:

Under the JavaScript runtime, exceeding the maximum (or minimum) representable value for a floating point value will result in Infinity (or -Infinity). Should you try to divide two infinities you will get NaN as a result.

Something like that would probably be good to have in the float module as well. I'm not sure if there should be suggestions on how to handle these values, since the float module doesn't provide functions for dealing with them.

@mooreryan mooreryan changed the title Potential additions to float module Potential additions to float module docs Dec 29, 2024
@lpil
Copy link
Member

lpil commented Dec 30, 2024

Perhaps we could have the same text as in the tour?

mooreryan added a commit to mooreryan/stdlib that referenced this issue Dec 31, 2024
lpil pushed a commit that referenced this issue Jan 3, 2025
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

2 participants