You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
About the string representation for n/0,
since we allow user to create fractions with denominator
zero, the str method should display it
(not an error message).
This allows arithmetic with "extended numbers", Infinity
and NaN (Not-a-Number). You don't need to worry about
operations with extended numbers, but please make str return fractions with denominator=0
as ordinary fractions, e.g. "1/0", "-1/0", or "0/0",
not an error message.
The text was updated successfully, but these errors were encountered:
Your test cases look good.
About the string representation for n/0,
since we allow user to create fractions with denominator
zero, the str method should display it
(not an error message).
This allows arithmetic with "extended numbers", Infinity
and NaN (Not-a-Number). You don't need to worry about
operations with extended numbers, but please make
str return fractions with denominator=0
as ordinary fractions, e.g. "1/0", "-1/0", or "0/0",
not an error message.
The text was updated successfully, but these errors were encountered: