Next: , Up: built-in numerics ratnums   [Contents][Index]


6.13.13.1 The <ratnum> type

Core Type: <ratnum>
Parent Type: <rational>

Type of ratnum values.

Constructor on <ratnum>: <ratnum> type-constructor obj

Validate obj as object of type <ratnum>. Return obj itself.

Type predicate on <ratnum>: <boolean> type-predicate obj

The type predicate is ratnum?. Return #t if obj is an object of type <ratnum>; otherwise return #f.

Hash function on <ratnum>: <non-negative-fixnum> hash-function this

The hash function is ratnum-hash.