Skip to content

Commit

Permalink
Don't multiply and divide by pi
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Nov 15, 2024
1 parent 15bc0b6 commit 8b71b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tivars/types/real.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def string(self) -> str:
return "0"

else:
return f"{self.decimal() / pi:.14f}".rstrip("0").rstrip(".") + "π"
return f"{super().decimal():.14f}".rstrip("0").rstrip(".") + "π"


class TIRealPiFraction(TIRealPi, TIRealFraction, register=True):
Expand Down

0 comments on commit 8b71b63

Please sign in to comment.