Go to the first, previous, next, last section, table of contents.


Numbers

Currently Jade is only capable of representing integers, for this it uses signed 32-bit integers: this gives a range of -2147483648 through 0 to 2147483647.

The read syntax of an integer is simply the number written in decimal, octal or hexadecimal. If the integer starts with the string `0x' it is assumed to be hexadecimal or if it starts with a zero it is treated as octal. The first character may be an optional minus or plus sign (this should come before any base-specifier). Examples of valid integer read syntaxes for the number 42 could be `42', `0x2a', `052', `+052', ...

An integer's printed representation is simply the number printed in decimal with a preceding minus sign if it is negative.

Function: numberp object
This function returns t if object is a number.

Function: integerp object
This function returns t when object is an integer.


Go to the first, previous, next, last section, table of contents.