Surprise with Rational

Hah, fair enough! I suppose the coherence will come from this:

  • Floats support both
  • Ints support neither
  • Rationals meet halfway

This one feels strange; do you know what’s going on?

1/(1//0 + 0im) gives 0//1 + 0//1*im, but 1//(1//0 + 0im) throws an error.

:pray:

1 Like