aboutsummaryrefslogtreecommitdiff
path: root/units.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-19 13:51:17 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-19 13:51:17 +0200
commit9b2b5ec2c339805b3604c41a48cedf3db4fcf868 (patch)
treeed223326b8c38ea731d3445788ec2ee7ae1f878d /units.go
parentbe6484b1e9e0d14cdb1523f5771921d637a1bb50 (diff)
Bump precision to 3 decimal points
Diffstat (limited to 'units.go')
-rw-r--r--units.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}