home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pyhtmldoc / s / supporting < prev    next >
Encoding:
Text File  |  1996-11-14  |  1.0 KB  |  21 lines

  1. <TITLE>Supporting Floating Point Data -- Python library reference</TITLE>
  2. Prev: <A HREF="../e/exceptions" TYPE="Prev">Exceptions</A>  
  3. Up: <A HREF="../x/xdrlib" TYPE="Up">xdrlib</A>  
  4. Top: <A HREF="../t/top" TYPE="Top">Top</A>  
  5. <H2>10.16.4. Supporting Floating Point Data</H2>
  6. Packing and unpacking floating point data,
  7. i.e. <CODE>Packer.pack_float</CODE>, <CODE>Packer.pack_double</CODE>,
  8. <CODE>Unpacker.unpack_float</CODE>, and <CODE>Unpacker.unpack_double</CODE>, are
  9. only supported with the helper built-in <CODE>_xdr</CODE> module, which
  10. relies on your operating system having the appropriate XDR library
  11. routines.
  12. <P>
  13. If you have built the Python interpeter with the <CODE>_xdr</CODE> module,
  14. or have built the <CODE>_xdr</CODE> module as a shared library,
  15. <CODE>xdrlib</CODE> will use these to pack and unpack floating point
  16. numbers.  Otherwise, using these routines will raise a
  17. <CODE>ConversionError</CODE> exception.
  18. <P>
  19. See the Python installation instructions for details on building the
  20. <CODE>_xdr</CODE> module.
  21.