connorferster / forallpeople

Python SI units library: your 'daily driver' for calculations.
Apache License 2.0
307 stars 40 forks source link

Rationals as `.factor` is still not perfectly accurate #73

Open connorferster opened 1 year ago

connorferster commented 1 year ago

In this example:

S_x = 40000 * mm**3
S_x.to('inch')

This returns a Physical that is still in mm3. This is because there is a slight error generated in the rational when it is raised to an odd power (e.g. `mm3`). Needs to have some kind of tolerance built in.