File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 33# Copyright © 2020 labfis.py
44# (see LICENSE for details)
55
6- __version__ = '1.1.5 '
6+ __version__ = '1.1.6 '
77
88# Local imports
99from labfis .main import labfloat
Original file line number Diff line number Diff line change @@ -59,14 +59,17 @@ def format(self):
5959 else :
6060 r = - i
6161 r += 1
62- for j in range ( len ( su )) :
63- if su [ j ] == "0" :
62+ for digit in su :
63+ if digit == "0" :
6464 r += 1
65- elif su [j + 1 ] == "9" and r > 0 :
65+ print ("zero" , r )
66+ elif digit == "9" and "1" in str (round (self .uncertainty ,r )):
67+ print ("yes" , r )
6668 m = round (self .mean , r - 1 )
6769 u = round (self .uncertainty , r )
6870 return ((m ,u ))
69- elif su [j ] != "." :
71+ elif digit != "." :
72+ print ("Number" )
7073 m = round (self .mean , r )
7174 u = round (self .uncertainty , r )
7275 return ((m ,u ))
You can’t perform that action at this time.
0 commit comments