home *** CD-ROM | disk | FTP | other *** search
- <TITLE>Supporting Floating Point Data -- Python library reference</TITLE>
- Prev: <A HREF="../e/exceptions" TYPE="Prev">Exceptions</A>
- Up: <A HREF="../x/xdrlib" TYPE="Up">xdrlib</A>
- Top: <A HREF="../t/top" TYPE="Top">Top</A>
- <H2>10.16.4. Supporting Floating Point Data</H2>
- Packing and unpacking floating point data,
- i.e. <CODE>Packer.pack_float</CODE>, <CODE>Packer.pack_double</CODE>,
- <CODE>Unpacker.unpack_float</CODE>, and <CODE>Unpacker.unpack_double</CODE>, are
- only supported with the helper built-in <CODE>_xdr</CODE> module, which
- relies on your operating system having the appropriate XDR library
- routines.
- <P>
- If you have built the Python interpeter with the <CODE>_xdr</CODE> module,
- or have built the <CODE>_xdr</CODE> module as a shared library,
- <CODE>xdrlib</CODE> will use these to pack and unpack floating point
- numbers. Otherwise, using these routines will raise a
- <CODE>ConversionError</CODE> exception.
- <P>
- See the Python installation instructions for details on building the
- <CODE>_xdr</CODE> module.
-