./math/py-fpconst, IEEE 754 floating point special handling for Python

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2007Q4, Version: 0.7.0nb1, Package name: py24-fpconst-0.7.0nb1, Maintainer: recht

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
test for these values.

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
translating the core routines into C.


Required to run:
[lang/python24]

Master sites:

SHA1: 7797ea0b3f9bb0e09896d756cbe16922c2682de1
RMD160: ca8292df6c63123879d2a1a39fbdd10cbc68a233
Filesize: 3.203 KB

Version history: (Expand)