Scale range $[1\times 10^{-12}, 1\times 10^{-6}]$ to $[0-100]$

30 Views Asked by At

A method I tried in scaling this range is this common:

$(100 - 0) * (x-\min)/(\max - \min)$

If we take $1\times 10^{-9}$ which is somehow in the middle it has to be mapped to $50$ (right?) but it gives me $0.000999$. Anything I'm missing here? Or there is some kind of special methods for such ranges?

To give you more info, these are pressure readings, examples can be: $2.7\times 10^{-10}$, $5.27\times 10^{-8}$, etc. with max two digits precision.