TITLE ^

CardinalInteger - Cardinal integers

SUBROUTINES ^

onload

ACCEPTS()

perl()

Returns a Perl representation of the CardinalInteger.

to_s()

Returns a CardinalString representation of the CardinalInteger.

to_i() to_int() floor() ceil() round() truncate()

All return self

Returns 1

gcd(num)

Return the greatest common divisor of self and num

downto(n, block)

Runs block for each integer from the current value of the Integer down to n.

upto(n, block)

Runs block for each integer from the current value of the Integer up to n.

Runs block for integer from 0 to value of self

succ()

Return self plus 1

next()

Return self plus 1


parrot