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


6.13.11.1 The <bignum> type

Core Type: <bignum>
Parent Type: <exact-integer>

Type of bignum values. There is no constructor. The type predicate is bignum?.

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

Validate obj as object of type <bignum> and return it.

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

The type predicate is bignum?. Return #t if obj is a <bignum> object, otherwise return #f.

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

The hash function is bignum-hash.

Methods

Method on <bignum>: <bytevector> bytevector this

Apply bignum->bytevector to the instance and return its return value.

Method on <bignum>: <bytevector> odd? this

Apply odd? to the instance and return its return value.

Method on <bignum>: <bytevector> even? this

Apply even? to the instance and return its return value.