-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve docs of big module overloads #6336
Improve docs of big module overloads #6336
Conversation
Convention is to add |
@Sija These are methods added to |
@laginha87 Please rebase this PR's branch against master, CI is failing because of things that are already fixed in master. |
714de7c
to
d7fec28
Compare
src/big/big_float.cr
Outdated
@@ -298,6 +304,12 @@ module Math | |||
{frac, exp} | |||
end | |||
|
|||
# Returns the sqrt of a `BigInt`. |
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.
Should be BigFloat
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.
Well, apart from what @BenDietze pointed out.
…sses that are part of the standard library
d7fec28
to
fbcaf58
Compare
@RX14, @BenDietze thanks for looking into the PR, I made the requested change and rebased on master again, should be good to go. |
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.
Thank you @laginha87 👍
Fix for #6226 by adding code examples to the docs that import the
big
module.It was also mentioned in the issue to improve the error message in case of overflow, but from what I looked at the code it seems like there is no simple way to add that without changing the code significantly.
https://github.com/crystal-lang/crystal/blob/e806c95/src/string.cr#L407