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

minor doc issue on Float32 literals #2821

Closed
klkuhlm opened this issue Apr 10, 2013 · 1 comment
Closed

minor doc issue on Float32 literals #2821

klkuhlm opened this issue Apr 10, 2013 · 1 comment

Comments

@klkuhlm
Copy link

klkuhlm commented Apr 10, 2013

I noticed the following minor issue regarding float32 literals in the online Julia documentation.

https://docs.julialang.org/en/release-0.1/manual/integers-and-floating-point-numbers/

The above results are all Float64 values. There is no literal format for Float32, but you can convert values to Float32 easily:

julia> float32(-1.5)
-1.5

julia> typeof(ans)
Float32

There are three specified standard floating-point values that do not correspond to a point on the real number line:

This should be updated to reflect that there is a literal format for Float32, namely "-1.5f0" in this case.

@JeffBezanson
Copy link
Sponsor Member

Thanks for catching this.

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