Skip to content

Commit

Permalink
Merge pull request #2181 from cyuewen/patch-2
Browse files Browse the repository at this point in the history
Update bigdecimal.md
  • Loading branch information
Snailclimb authored Sep 30, 2023
2 parents b83d88c + 0810bdd commit cbaede3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/java/basis/bigdecimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public class BigDecimalUtil {
}
```

相关 issue:[建议对保留规则设置为 RoundingMode.HALF_EVEN,即四舍六入五成双]([#1122](https://github.com/Snailclimb/JavaGuide/issues/1122))
相关 issue:[建议对保留规则设置为 RoundingMode.HALF_EVEN,即四舍六入五成双]([#2129](https://github.com/Snailclimb/JavaGuide/issues/2129))

![RoundingMode.HALF_EVEN](https://oss.javaguide.cn/github/javaguide/java/basis/RoundingMode.HALF_EVEN.png)

Expand All @@ -361,4 +361,4 @@ public class BigDecimalUtil {

不过,Java 提供了`BigDecimal` 来操作浮点数。`BigDecimal` 的实现利用到了 `BigInteger` (用来操作大整数), 所不同的是 `BigDecimal` 加入了小数位的概念。

<!-- @include: @article-footer.snippet.md -->
<!-- @include: @article-footer.snippet.md -->

0 comments on commit cbaede3

Please sign in to comment.