fpconst (version 0.7.2)
index
/home/groups/p/py/pywebsvcs/src/SOAPpy/fpconst.py

Utilities for handling IEEE 754 floating point special values
 
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 (PosInf), and Negative Infinity
(NegInf), 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.
 
See <http://babbage.cs.qc.edu/courses/cs341/IEEE-754references.html>
for reference material on the IEEE 754 floating point standard.
 
Further information on this package is available at
<http://www.analytics.washington.edu/statcomp/projects/rzope/fpconst/>.
 
------------------------------------------------------------------
Author:    Gregory R. Warnes <Gregory.R.Warnes@Pfizer.com>
Date:      2005-02-24
Version:   0.7.2
Copyright: (c) 2003-2005 Pfizer, Licensed to PSF under a Contributor Agreement
License:   Licensed under the Apache License, Version 2.0 (the"License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
 
               http://www.apache.org/licenses/LICENSE-2.0
 
           Unless required by applicable law or agreed to in
           writing, software distributed under the License is
           distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
           CONDITIONS OF ANY KIND, either express or implied.  See
           the License for the specific language governing
           permissions and limitations under the License.
------------------------------------------------------------------

 
Modules
       
operator
struct

 
Functions
       
isFinite(value)
Determine if the argument is an finite IEEE 754 value (i.e., is
not NaN, positive or negative inifinity)
isInf(value)
Determine if the argument is an infinite IEEE 754 value (positive
or negative inifinity)
isNaN(value)
Determine if the argument is a IEEE 754 NaN (Not a Number) value.
isNegInf(value)
Determine if the argument is a IEEE 754 negative infinity value
isPosInf(value)
Determine if the argument is a IEEE 754 positive infinity value
test()
# overall test
test_isFinite()
test_isInf()
test_isNaN()
test_isNegInf()
test_isPosInf()

 
Data
        NaN = nan
NegInf = -inf
PosInf = inf
__version__ = '0.7.2'
ident = '$Id: fpconst.py,v 1.16 2005/02/24 17:42:03 warnes Exp $'