Add micro- and nano- suffixes

This commit is contained in:
Tim St. Clair
2016-01-04 14:08:24 -08:00
parent 2cd8bff334
commit 40e90886e6
4 changed files with 187 additions and 44 deletions

View File

@@ -83,6 +83,8 @@ func newSuffixer() suffixer {
// a suffix for 2^0.
sh.decSuffixes.addSuffix("", bePair{2, 0})
sh.decSuffixes.addSuffix("n", bePair{10, -9})
sh.decSuffixes.addSuffix("u", bePair{10, -6})
sh.decSuffixes.addSuffix("m", bePair{10, -3})
sh.decSuffixes.addSuffix("", bePair{10, 0})
sh.decSuffixes.addSuffix("k", bePair{10, 3})