You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the reason is RoundUp method would return the original input, when rescaled equal input decimal, The code location is shown in the figure
The text was updated successfully, but these errors were encountered:
KyleAdultHub
changed the title
Inconsistent rounding behavior in RoundUp and RoundDown methods
Inconsistent rounding behavior in Round and RoundUp methods
Dec 27, 2024
When using the RoundUp(0) method, the results are inconsistent with the Round method. Below are example cases demonstrating the issue:
`
func ExampleNewBigDecimal() {
}
`
output
got: 100 100.0
the reason is RoundUp method would return the original input, when rescaled equal input decimal, The code location is shown in the figure
The text was updated successfully, but these errors were encountered: