Skip to content

Commit

Permalink
Revert this until I figure out what's going on
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Nov 15, 2024
1 parent d7d866e commit 43d1139
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 @@ -370,7 +370,7 @@ def load_string(self, string: str):
self.load_fraction(Fraction(squash(string)))

def string(self) -> str:
if self.fraction() == 0:
if self.fraction():
return "%d / %d" % self.fraction().as_integer_ratio()

else:
Expand Down

0 comments on commit 43d1139

Please sign in to comment.