-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
document Grisu #27808
document Grisu #27808
Conversation
base/grisu/grisu.jl
Outdated
@@ -26,6 +26,29 @@ include("grisu/bignum.jl") | |||
|
|||
const BIGNUMS = [Bignums.Bignum(),Bignums.Bignum(),Bignums.Bignum(),Bignums.Bignum()] | |||
|
|||
""" | |||
(len, point, neg) = Grisu.grisu(v::AbstractFloat, mode, requested_digits, | |||
buffer=DIGITSs[Threads.threadid()], bignums=BIGNUMS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be updated for #27826?
base/grisu/grisu.jl
Outdated
- `Grisu.FIXED`: round to `requested_digits` digits. | ||
- `Grisu.PRECISION`: round to `requested_digits` significant digits. | ||
|
||
`bignums` are used internally as part of the correction step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buffer
and bignums
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mention above that buffer
is used to output the digits
I tweaked the documentation order to be inputs then outputs. |
No description provided.