You are looking at historical revision 13572 of this page. It may differ significantly from its current revision.

number-limits

Documentation

Limits for machine number types.

Integer Limits

most-positive-fixnum
Largest positive fixnum
most-negative-fixnum
Smallest negative fixnum
fixnum-precision
Number of bits in fixnum
machine-word-bits
Number of bits in machine word - C_word
maximum-machine-word
Largest machine word value - C_uword
most-negative-machine-word
Smallest negative machine word value - C_word
most-positive-machine-word
Largest positive machine word value - C_word
unsigned-integer32-size
Sizeof uint32_t
maximum-unsigned-integer32
Largest value for uint32_t
unsigned-char-size
Sizeof the C type
unsigned-short-size
Sizeof the C type
unsigned-int-size
Sizeof the C type
unsigned-long-size
Sizeof the C type
unsigned-long-long-size
Sizeof the C type, 0 when unsupported
char-size
Sizeof the C type
short-size
Sizeof the C type
int-size
Sizeof the C type
long-size
Sizeof the C type
long-long-size
Sizeof the C type, 0 when unsupported

Float Limits

float-radix
Representation base of floating point number
maximum-float
Largest floating point number
minimum-float
Smallest floating point number
float-epsilon
The difference between 1.0 and the least value > 1.0 of a floating point number
float-precision
Number of digits in mantissa base radix of floating point number
float-decimal-precision
Number of digits in mantissa base 10 of floating point number
float-maximum-exponent
Largest exponent in base radix of floating point number
float-minimum-exponent
Smallest exponent in base radix of floating point number
float-maximum-decimal-exponent
Largest exponent in base 10 of floating point number
float-minimum-decimal-exponent
Smallest exponent in base 10 of floating point number
maximum-double
Largest floating point number
minimum-double
Smallest floating point number
double-epsilon
The difference between 1.0 and the least value > 1.0 of a floating point number
double-precision
Number of digits in mantissa base radix of floating point number
double-decimal-precision
Number of digits in mantissa base 10 of floating point number
double-maximum-exponent
Largest exponent in base radix of floating point number
double-minimum-exponent
Smallest exponent in base radix of floating point number
double-maximum-decimal-exponent
Largest exponent in base 10 of floating point number
double-minimum-decimal-exponent
Smallest exponent in base 10 of floating point number
maximum-long-double
Largest floating point number
minimum-long-double
Smallest floating point number
long-double-epsilon
The difference between 1.0 and the least value > 1.0 of a floating point number
long-double-precision
Number of digits in mantissa base radix of floating point number
long-double-decimal-precision
Number of digits in mantissa base 10 of floating point number
long-double-maximum-exponent
Largest exponent in base radix of floating point number
long-double-minimum-exponent
Smallest exponent in base radix of floating point number
long-double-maximum-decimal-exponent
Largest exponent in base 10 of floating point number
long-double-minimum-decimal-exponent
Smallest exponent in base 10 of floating point number
long-double-radix
Representation base of floating point number
maximum-flonum
Largest floating point number
minimum-flonum
Smallest floating point number
flonum-epsilon
The difference between 1.0 and the least value > 1.0 of a floating point number
flonum-precision
Number of digits in mantissa base radix of floating point number
flonum-decimal-precision
Number of digits in mantissa base 10 of floating point number
flonum-maximum-exponent
Largest exponent in base radix of floating point number
flonum-minimum-exponent
Smallest exponent in base radix of floating point number
flonum-maximum-decimal-exponent
Largest exponent in base 10 of floating point number
flonum-minimum-decimal-exponent
Smallest exponent in base 10 of floating point number

Usage

int-limits

(require-library int-limits)
...
(import int-limits)

or

(require-extension int-limits)

float-limits

(require-library float-limits)
...
(import float-limits)

or

(require-extension float-limits)

Examples

Notes

Requirements

Bugs and Limitations

Author

kon lovett

Version history

2.0.0
Chicken 4 release. Renamed extension files.

License

Copyright (C) 2009 Kon Lovett. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.