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:
alfon_news 2020-06-09 07:51:14 +02:00 committed by GitHub
parent 0dcd79bbc6
commit fc7921100e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)