Next: built-in numerics compnums non-zero-inexact, Previous: built-in numerics compnums inexact, Up: built-in numerics compnums [Contents][Index]
<zero-compnum> typeType of compnum values having both the real part and imaginary part equal to zero.
Remembering that a compnum with exact zero as imaginary part is
converted to a real number by the Scheme reader and the function
make-rectangular:
1+0i ⇒ 1 1.0+0i ⇒ 1.0 (make-rectangular 1 0) ⇒ 1 (make-rectangular 1.0 0) ⇒ 1.0
the compnums of type <zero-compnum> are ‘0+0.0i’ and
‘0-0.0i’ with the imaginary part always inexact.
NOTE We need to remember that if a value is a compnum: only one among the real and imaginary parts is inexact. If both are inexact: it is not a compnum, it is a cflonum.
<zero-compnum>: <zero-compnum> type-constructor objValidate obj as object of type <zero-compnum>.  Return
obj itself.
<zero-compnum>: <boolean> type-predicate objThe type predicate is zero-compnum?.  Return #t if obj
is an object of type <zero-compnum>; otherwise return #f.