Fix siScale imprecision errors (#508)
* Fix siScale imprecision errors * Implement 2xB suggested change Co-authored-by: Alberto Fontán Correa <afontan@com.uvigo.es> Co-authored-by: Ogi Moore <ognyan.moore@gmail.com>
This commit is contained in:
parent
0dcd79bbc6
commit
fc7921100e
@ -77,7 +77,8 @@ def siScale(x, minVal=1e-25, allowUnicode=True):
|
||||
pref = SI_PREFIXES[m+8]
|
||||
else:
|
||||
pref = SI_PREFIXES_ASCII[m+8]
|
||||
p = .001**m
|
||||
m1 = -3*m
|
||||
p = 10.**m1
|
||||
|
||||
return (p, pref)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user