Loading cccli/tagdisplay.py +2 −2 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ class TagDisplay(object): p = min(math.floor(math.log10(abs(v))/3.0), len(si)) d = v / pow(10, 3*p) u = si[int(p-1)] value = u"%.1f%s"%(d, u) value = u"%.4g%s"%(d, u) return value def type_bit(self, value): Loading @@ -129,7 +129,7 @@ class TagDisplay(object): p = min(math.floor(math.log(abs(v), 2)/10.0), pow(2, len(si))) d = v / pow(2, 10*p) u = si[int(p-1)] value = u"%.1f%si"%(d, u) value = u"%.4g%si"%(d, u) return value def type_second(self, value): Loading Loading
cccli/tagdisplay.py +2 −2 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ class TagDisplay(object): p = min(math.floor(math.log10(abs(v))/3.0), len(si)) d = v / pow(10, 3*p) u = si[int(p-1)] value = u"%.1f%s"%(d, u) value = u"%.4g%s"%(d, u) return value def type_bit(self, value): Loading @@ -129,7 +129,7 @@ class TagDisplay(object): p = min(math.floor(math.log(abs(v), 2)/10.0), pow(2, len(si))) d = v / pow(2, 10*p) u = si[int(p-1)] value = u"%.1f%si"%(d, u) value = u"%.4g%si"%(d, u) return value def type_second(self, value): Loading