source: project/wiki/eggref/4/number-limits @ 13572

Last change on this file since 13572 was 13572, checked in by Kon Lovett, 12 years ago

int-limits & float-limits doc.

File size: 5.6 KB
Line 
1[[tags: egg]]
2
3== number-limits
4
5[[toc:]]
6
7
8== Documentation
9
10Limits for machine number types.
11
12
13=== Integer Limits
14
15; most-positive-fixnum : Largest positive fixnum
16; most-negative-fixnum : Smallest negative fixnum
17; fixnum-precision : Number of bits in fixnum
18; machine-word-bits : Number of bits in machine word - C_word
19; maximum-machine-word : Largest machine word value - C_uword
20; most-negative-machine-word : Smallest negative machine word value - C_word
21; most-positive-machine-word : Largest positive machine word value - C_word
22; unsigned-integer32-size : Sizeof uint32_t
23; maximum-unsigned-integer32 : Largest value for uint32_t
24; unsigned-char-size : Sizeof the C type
25; unsigned-short-size : Sizeof the C type
26; unsigned-int-size : Sizeof the C type
27; unsigned-long-size : Sizeof the C type
28; unsigned-long-long-size : Sizeof the C type, 0 when unsupported
29; char-size : Sizeof the C type
30; short-size : Sizeof the C type
31; int-size : Sizeof the C type
32; long-size : Sizeof the C type
33; long-long-size : Sizeof the C type, 0 when unsupported
34
35
36=== Float Limits
37
38; float-radix : Representation base of floating point number
39; maximum-float : Largest floating point number
40; minimum-float : Smallest floating point number
41; float-epsilon : The difference between 1.0 and the least value > 1.0 of a floating point number
42; float-precision : Number of digits in mantissa base radix of floating point number
43; float-decimal-precision : Number of digits in mantissa base 10 of floating point number
44; float-maximum-exponent : Largest exponent in base radix of floating point number
45; float-minimum-exponent : Smallest exponent in base radix of floating point number
46; float-maximum-decimal-exponent : Largest exponent in base 10 of floating point number
47; float-minimum-decimal-exponent : Smallest exponent in base 10 of floating point number
48; maximum-double : Largest floating point number
49; minimum-double : Smallest floating point number
50; double-epsilon : The difference between 1.0 and the least value > 1.0 of a floating point number
51; double-precision : Number of digits in mantissa base radix of floating point number
52; double-decimal-precision : Number of digits in mantissa base 10 of floating point number
53; double-maximum-exponent : Largest exponent in base radix of floating point number
54; double-minimum-exponent : Smallest exponent in base radix of floating point number
55; double-maximum-decimal-exponent : Largest exponent in base 10 of floating point number
56; double-minimum-decimal-exponent : Smallest exponent in base 10 of floating point number
57; maximum-long-double : Largest floating point number
58; minimum-long-double : Smallest floating point number
59; long-double-epsilon : The difference between 1.0 and the least value > 1.0 of a floating point number
60; long-double-precision : Number of digits in mantissa base radix of floating point number
61; long-double-decimal-precision : Number of digits in mantissa base 10 of floating point number
62; long-double-maximum-exponent : Largest exponent in base radix of floating point number
63; long-double-minimum-exponent : Smallest exponent in base radix of floating point number
64; long-double-maximum-decimal-exponent : Largest exponent in base 10 of floating point number
65; long-double-minimum-decimal-exponent : Smallest exponent in base 10 of floating point number
66; long-double-radix : Representation base of floating point number
67; maximum-flonum : Largest floating point number
68; minimum-flonum : Smallest floating point number
69; flonum-epsilon : The difference between 1.0 and the least value > 1.0 of a floating point number
70; flonum-precision : Number of digits in mantissa base radix of floating point number
71; flonum-decimal-precision : Number of digits in mantissa base 10 of floating point number
72; flonum-maximum-exponent : Largest exponent in base radix of floating point number
73; flonum-minimum-exponent : Smallest exponent in base radix of floating point number
74; flonum-maximum-decimal-exponent : Largest exponent in base 10 of floating point number
75; flonum-minimum-decimal-exponent : Smallest exponent in base 10 of floating point number
76
77
78== Usage
79
80=== int-limits
81
82<enscript language=scheme>
83(require-library int-limits)
84...
85(import int-limits)
86</enscript>
87
88or
89
90<enscript language=scheme>
91(require-extension int-limits)
92</enscript>
93
94=== float-limits
95
96<enscript language=scheme>
97(require-library float-limits)
98...
99(import float-limits)
100</enscript>
101
102or
103
104<enscript language=scheme>
105(require-extension float-limits)
106</enscript>
107
108
109== Examples
110
111
112== Notes
113
114
115== Requirements
116
117
118== Bugs and Limitations
119
120
121== Author
122
123[[kon lovett]]
124
125
126== Version history
127
128; 2.0.0 : Chicken 4 release. Renamed extension files.
129
130
131== License
132
133Copyright (C) 2009 Kon Lovett.  All rights reserved.
134
135Permission is hereby granted, free of charge, to any person obtaining a
136copy of this software and associated documentation files (the Software),
137to deal in the Software without restriction, including without limitation
138the rights to use, copy, modify, merge, publish, distribute, sublicense,
139and/or sell copies of the Software, and to permit persons to whom the
140Software is furnished to do so, subject to the following conditions:
141
142The above copyright notice and this permission notice shall be included
143in all copies or substantial portions of the Software.
144
145THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
146IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
147FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
148THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
149OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
150ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
151OTHER DEALINGS IN THE SOFTWARE.
Note: See TracBrowser for help on using the repository browser.