decimal icon indicating copy to clipboard operation
decimal copied to clipboard

roundfloor

Open richardJiang opened this issue 2 years ago • 0 comments

num := decimal.NewFromFloat(1.111111).Sub(decimal.NewFromFloat(1.222222)).RoundFloor(4)
fmt.Println("1.111111 - 1.222222 =", num)

     1.111111 - 1.222222 = -0.1112

    but, the RoundFloor example was -0.1111

richardJiang avatar Apr 27 '22 05:04 richardJiang