建议:修改RoundingMode的样例中注释采用的数据#2663
Merged
Snailclimb merged 1 commit intoSnailclimb:mainfrom Apr 24, 2025
1312255201:patch-2
Merged
建议:修改RoundingMode的样例中注释采用的数据#2663Snailclimb merged 1 commit intoSnailclimb:mainfrom 1312255201:patch-2
Snailclimb merged 1 commit intoSnailclimb:mainfrom
1312255201:patch-2
Conversation
Owner
感谢完善👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
作者您好,在阅读《BigDecimal 详解》一文当中,在介绍使用 RoundingMode的几种模式中,文中的样例注释当中使用了2.5 -2.5 1.6 -1.6这四个数作为的样例,但是对于最后一个四舍五入的方法没有区分度,均为大于5的数进位。所以我提议将2.5改为2.4,-2.5改为-2.4来进行区分,做了如下修改,并且使用java程序已验证正确性,希望可以合并