Signed imaginary zero

Peter McGoron via Chicken-users <[email protected]> Sun, 12 Jul 2026 22:42:38 -0400
Newsgroups gmane.lisp.scheme.chicken
Message-ID <[email protected]>
In CHICKEN 6 (and CHICKEN 5) there is a signed real zero but no signed 
imaginary zero:

* -0.0i reads as -0.0 (the real number)

* (imag-part (make-rectangular 1.0-0.0i)) evaluates to 0.0

The lack of signed imaginary zero is a bit frustrating because some 
functions that should be sensitive to signed real zero return the 
incorrect values because the sign at some point doesn't transfer to the 
imaginary part.

Is it possible to fix this?

-- Peter McGoron