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


6.13.8 Type of integer values

Core Type: <integer>
Parent Type: <rational>

Type of integer values.

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

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

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

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

Methods

Method on <integer>: <integer> gcd this {X <integer>} …

Apply gcd to the arguments and return its return value.

Method on <integer>: <integer> lcm this {X <integer>} …

Apply lcm to the arguments and return its return value.

Method on <integer>: <integer> quotient this {X <integer>}

Apply quotient to the arguments and return its return value.

Method on <integer>: <integer> remainder this {X <integer>}

Apply remainder to the arguments and return its return value.

Method on <integer>: <integer> quotient+remainder this {X <integer>}

Apply quotient+remainder to the arguments and return its return values.

Method on <integer>: <integer> modulo this {X <integer>}

Apply modulo to the arguments and return its return value.

Method on <integer>: <integer> factorial this {X <integer>}

Apply factorial to the argument and return its return value.