Hi all-

Should a number be able to be both complex and exact?

The R6RS isn't helpful in answering this question.  It says
"A number object is exact if it is the value of an exact 
numerical literal or was derived from exact number objects
using only exact operations.  Exact number objects correspond
to mathematical numbers in the obvious way."

$ meta/guile -c "(write 0+i) (newline)"
> 0.0+1.0i

$ meta/guile -c "(write #e0+i) (newline)"
> ERROR: In procedure inexact->exact:
> ERROR: Wrong type argument in position 1: 0.0+1.0i

Thanks,

Mike


Reply via email to