Python import Fraction #10052
Unanswered
gabrielonet
asked this question in
Libraries & Drivers
Replies: 1 comment 3 replies
-
Although it states to be the best approximation, it not necessarily always is. But it's still almost the best.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
Having a programable module like SI5351 I need to compute numerator and denominator from a given value (not static).
For example , x/y= 0.752 , I need to know first plausible integer values for x and y.
In python is was a breeze like from fractions import Fraction then Fraction(0.752) will provide the reverse Euclid computing , but in micropython cannot import Fraction even I add fractions to libraries.
MicroPython v1.19.1 on 2022-06-18; Raspberry Pi Pico with RP2040
Any help please ?
Regards, Gabriel
Beta Was this translation helpful? Give feedback.
All reactions