From 27a017a55b26fe33aa954692d30f090bad8666b5 Mon Sep 17 00:00:00 2001 From: Martin Asquino Date: Thu, 15 Aug 2019 09:55:02 -0300 Subject: [PATCH] Fix documentation on StringFixedBank --- decimal.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/decimal.go b/decimal.go index 134ece2..79e7fda 100644 --- a/decimal.go +++ b/decimal.go @@ -728,13 +728,13 @@ func (d Decimal) StringFixed(places int32) string { // // Example: // -// NewFromFloat(0).StringFixed(2) // output: "0.00" -// NewFromFloat(0).StringFixed(0) // output: "0" -// NewFromFloat(5.45).StringFixed(0) // output: "5" -// NewFromFloat(5.45).StringFixed(1) // output: "5.4" -// NewFromFloat(5.45).StringFixed(2) // output: "5.45" -// NewFromFloat(5.45).StringFixed(3) // output: "5.450" -// NewFromFloat(545).StringFixed(-1) // output: "550" +// NewFromFloat(0).StringFixedBank(2) // output: "0.00" +// NewFromFloat(0).StringFixedBank(0) // output: "0" +// NewFromFloat(5.45).StringFixedBank(0) // output: "5" +// NewFromFloat(5.45).StringFixedBank(1) // output: "5.4" +// NewFromFloat(5.45).StringFixedBank(2) // output: "5.45" +// NewFromFloat(5.45).StringFixedBank(3) // output: "5.450" +// NewFromFloat(545).StringFixedBank(-1) // output: "540" // func (d Decimal) StringFixedBank(places int32) string { rounded := d.RoundBank(places)