0

I would like to if there is some way to represent something like 0.25 as 1/4 ?

mack_hyuuga
  • 11
  • 1
  • 3
  • 2
    This is essentially a duplicate of [this post](https://stackoverflow.com/q/45651029/2476977). In short, you can get a "symbolic" 1/4 with `sympy.Rational(1,4)`. – Ben Grossmann Sep 14 '22 at 18:58
  • If you want to find the fraction using the decimal number, see [this post](https://stackoverflow.com/q/23344185/2476977) – Ben Grossmann Sep 14 '22 at 18:59

0 Answers0