Next: , Previous: , Up: syslib numerics   [Index]


12.10.23 Conversion to exact number

Unsafe Operation: $exact-fixnum fx

This is an identity function: always return fx.

Unsafe Operation: $exact-bignum bn

This is an identity function: always return bn.

Unsafe Operation: $exact-flonum fl

If fl is an integer flonum: return the corresponding exact integer, a fixnum or bignum. Otherwise raise an exception.

Unsafe Operation: $exact-ratnum rt

This is an identity function: always return rt.

Unsafe Operation: $exact-compnum cn

Attempt to convert the compnum cn into the corresponding exact compnum. If either the real or the imaginary parts are not integers: raise an exception.

Unsafe Operation: $exact-cflonum cfl

Attempt to convert the cflonum cfl into the corresponding exact compnum. If either the real or the imaginary parts are not integers: raise an exception.