mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-22 20:40:48 +01:00
fix doc for Sub
This commit is contained in:
parent
16f1ec9225
commit
892f011ab6
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ func (d Decimal) Add(d2 Decimal) Decimal {
|
|||
}
|
||||
}
|
||||
|
||||
// Returns d2 - d
|
||||
// Returns d - d2
|
||||
func (d Decimal) Sub(d2 Decimal) Decimal {
|
||||
baseScale := min(d.exp, d2.exp)
|
||||
rd := d.rescale(baseScale)
|
||||
|
|
Loading…
Reference in a new issue