@@ -240,6 +240,48 @@ always available.
240240 Use :mod: `atexit ` instead.
241241
242242
243+ .. data :: float_info
244+
245+ A dict holding information about the float type. It contains low level
246+ information about the precision and internal representation. Please study
247+ your system's :file: `float.h ` for more information.
248+
249+ +---------------------+--------------------------------------------------+
250+ | key | explanation |
251+ +=====================+==================================================+
252+ | :const: `epsilon ` | Difference between 1 and the next representable |
253+ | | floating point number |
254+ +---------------------+--------------------------------------------------+
255+ | :const: `dig ` | digits (see :file: `float.h `) |
256+ +---------------------+--------------------------------------------------+
257+ | :const: `mant_dig ` | mantissa digits (see :file: `float.h `) |
258+ +---------------------+--------------------------------------------------+
259+ | :const: `max ` | maximum representable finite float |
260+ +---------------------+--------------------------------------------------+
261+ | :const: `max_exp ` | maximum int e such that radix**(e-1) is in the |
262+ | | range of finite representable floats |
263+ +---------------------+--------------------------------------------------+
264+ | :const: `max_10_exp ` | maximum int e such that 10**e is in the |
265+ | | range of finite representable floats |
266+ +---------------------+--------------------------------------------------+
267+ | :const: `min ` | Minimum positive normalizer float |
268+ +---------------------+--------------------------------------------------+
269+ | :const: `min_exp ` | minimum int e such that radix**(e-1) is a |
270+ | | normalized float |
271+ +---------------------+--------------------------------------------------+
272+ | :const: `min_10_exp ` | minimum int e such that 10**e is a normalized |
273+ | | float |
274+ +---------------------+--------------------------------------------------+
275+ | :const: `radix ` | radix of exponent |
276+ +---------------------+--------------------------------------------------+
277+ | :const: `rounds ` | addition rounds (see :file: `float.h `) |
278+ +---------------------+--------------------------------------------------+
279+
280+ .. note ::
281+
282+ The information in the table is simplified.
283+
284+
243285.. function :: getcheckinterval()
244286
245287 Return the interpreter's "check interval"; see :func: `setcheckinterval `.
0 commit comments