mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-22 20:40:48 +01:00
only formattimg, really!
This commit is contained in:
parent
8b186db779
commit
696232de64
1 changed files with 2 additions and 2 deletions
|
@ -273,7 +273,7 @@ func (d Decimal) Mul(d2 Decimal) Decimal {
|
|||
// Div returns d / d2. If it doesn't divide exactly, the result will have
|
||||
// DivisionPrecision digits after the decimal point.
|
||||
func (d Decimal) Div(d2 Decimal) Decimal {
|
||||
return d.DivRound(d2,int32(DivisionPrecision))
|
||||
return d.DivRound(d2, int32(DivisionPrecision))
|
||||
}
|
||||
|
||||
// QuoRem does divsion with remainder
|
||||
|
@ -285,7 +285,7 @@ func (d Decimal) Div(d2 Decimal) Decimal {
|
|||
func (d Decimal) QuoRem(d2 Decimal, precision int32) (Decimal, Decimal) {
|
||||
d.ensureInitialized()
|
||||
d2.ensureInitialized()
|
||||
if (d2.value.Sign()==0) {
|
||||
if d2.value.Sign() == 0 {
|
||||
panic("decimal division by 0")
|
||||
}
|
||||
scale := -precision
|
||||
|
|
Loading…
Reference in a new issue