File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -726,7 +726,7 @@ func (d Decimal) RoundCash(interval uint8) Decimal {
726726// NewFromFloat(545).RoundCeil(-2).String() // output: "600"
727727// NewFromFloat(500).RoundCeil(-2).String() // output: "500"
728728// NewFromFloat(1.1001).RoundCeil(2).String() // output: "1.11"
729- // NewFromFloat(-1.454).RoundCeil(1).String() // output: "-1.5 "
729+ // NewFromFloat(-1.454).RoundCeil(1).String() // output: "-1.4 "
730730func (d Decimal ) RoundCeil (places int32 ) Decimal {
731731 return newFromDecimal (d .asFallback ().RoundCeil (places ))
732732}
@@ -752,7 +752,7 @@ func (d Decimal) RoundDown(places int32) Decimal {
752752// NewFromFloat(545).RoundFloor(-2).String() // output: "500"
753753// NewFromFloat(-500).RoundFloor(-2).String() // output: "-500"
754754// NewFromFloat(1.1001).RoundFloor(2).String() // output: "1.1"
755- // NewFromFloat(-1.454).RoundFloor(1).String() // output: "-1.4 "
755+ // NewFromFloat(-1.454).RoundFloor(1).String() // output: "-1.5 "
756756func (d Decimal ) RoundFloor (places int32 ) Decimal {
757757 return newFromDecimal (d .asFallback ().RoundFloor (places ))
758758}
You can’t perform that action at this time.
0 commit comments