mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-22 20:40:48 +01:00
Fix documentation in RoundBank method
This commit is contained in:
parent
867ed12000
commit
5a22b86679
1 changed files with 6 additions and 6 deletions
12
decimal.go
12
decimal.go
|
@ -853,12 +853,12 @@ func (d Decimal) Round(places int32) Decimal {
|
||||||
//
|
//
|
||||||
// Examples:
|
// Examples:
|
||||||
//
|
//
|
||||||
// NewFromFloat(5.45).Round(1).String() // output: "5.4"
|
// NewFromFloat(5.45).RoundBank(1).String() // output: "5.4"
|
||||||
// NewFromFloat(545).Round(-1).String() // output: "540"
|
// NewFromFloat(545).RoundBank(-1).String() // output: "540"
|
||||||
// NewFromFloat(5.46).Round(1).String() // output: "5.5"
|
// NewFromFloat(5.46).RoundBank(1).String() // output: "5.5"
|
||||||
// NewFromFloat(546).Round(-1).String() // output: "550"
|
// NewFromFloat(546).RoundBank(-1).String() // output: "550"
|
||||||
// NewFromFloat(5.55).Round(1).String() // output: "5.6"
|
// NewFromFloat(5.55).RoundBank(1).String() // output: "5.6"
|
||||||
// NewFromFloat(555).Round(-1).String() // output: "560"
|
// NewFromFloat(555).RoundBank(-1).String() // output: "560"
|
||||||
//
|
//
|
||||||
func (d Decimal) RoundBank(places int32) Decimal {
|
func (d Decimal) RoundBank(places int32) Decimal {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue