egallesio / STklos

STklos Scheme
http://stklos.net
GNU General Public License v2.0
68 stars 17 forks source link

When the imaginary part of a number is `+inf.0`, STklos prints an extra `+` sign -- for example, `+inf.0++inf.0i` #563

Closed jpellegrini closed 11 months ago

jpellegrini commented 12 months ago

Hi @egallesio !

stklos>  (* 1+1i +inf.0)
+inf.0++inf.0i

stklos> (* 0+1i +inf.0)
-nan.0++inf.0i

stklos>  (* 2+1i +inf.0)
+inf.0++inf.0i

Oops... Looks like there's an extra + being printed there...

egallesio commented 11 months ago

This one was also in my TODO list. I see that you have already corrected it. Great! Thanks a lot, @jpellegrini I have some comments in the PR itself.