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


12.6.4 Exactness and conversion

Unsafe Operation: $flonum->maybe-exact fl

Rationalize the operand and return the result. If fl has an acceptable exact representation: return such representation; otherwise return #f.

Unsafe Operation: $flexact fl

Rationalize the operand and return the result. If fl has an acceptable exact representation (it is finite): return such representation; otherwise raise a &&implementation-restriction exception.

Unsafe Operation: $fixnum->flonum fx

Convert the fixnum operand into a flonum and return a reference to the result.