From 696232de64c30d20502be20aacad2f8bc4df3eec Mon Sep 17 00:00:00 2001 From: Roland Averkamp Date: Thu, 3 Sep 2015 20:10:10 +0200 Subject: [PATCH] only formattimg, really! --- decimal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decimal.go b/decimal.go index e98ab63..45aa6a1 100644 --- a/decimal.go +++ b/decimal.go @@ -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