From 9b2b5ec2c339805b3604c41a48cedf3db4fcf868 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 19 May 2015 13:51:17 +0200 Subject: Bump precision to 3 decimal points --- units.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'units.go') diff --git a/units.go b/units.go index 726829d..93c0756 100644 --- a/units.go +++ b/units.go @@ -19,7 +19,7 @@ func (u Unit) String() string { if u == Unit(int(u)) { return fmt.Sprint(int(u)) } else { - return fmt.Sprintf("%.2f", u) + return fmt.Sprintf("%.3f", u) } } -- cgit v1.2.3