Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rounding in BigDecimal.SetScale for golang.
Golang "floors" negative numbers to the next lower number, while the PAP pseudo code assumes we're dealing with Java which "floors" negatives to the next higher number, i.e.: Java: Floor(-4.5) == -4 Golang: Floor(-4.5) == -5 Thanks Markus!
- Loading branch information