Ad
  • Custom User Avatar

    Your genius was clean cut by the float type ahaha

  • Default User Avatar

    You don't trust the built-in value of pi which is the most accurate float value possible for pi. But you still convert it to a float to lose all the precision you wanted and get something no better than math.pi.
    You can use fractions.Decimal instead of float if you want more precision.
    But you are ending up rounding the result to 2 decimals anyways.