2003-12-24 11:56:27 +01:00
|
|
|
This python module implements constants and functions for working with IEEE754
|
|
|
|
double-precision special values. It provides constants for Not-a-Number (NaN),
|
|
|
|
Positive Infinity (Inf), and Negative Infinity (-Inf), as well as functions to
|
2005-05-23 10:26:03 +02:00
|
|
|
test for these values.
|
2003-12-24 11:56:27 +01:00
|
|
|
|
|
|
|
The code is implemented in pure python by taking advantage of the 'struct'
|
|
|
|
standard module. Care has been taken to generate proper results on both
|
|
|
|
big-endian and little-endian machines. Some efficiency could be gained by
|
2005-05-23 10:26:03 +02:00
|
|
|
translating the core routines into C.
|