fpformat — Floating point conversions¶Deprecated since version 2.6: The fpformat module has been removed in Python 3.0. The fpformat module defines functions for dealing with floating point numbers representations in 100% pure Python. Note This module is unnecessary: everything here can be done using the % string interpolation operator described in the String Formatting Operations section. The fpformat module defines the following functions and an exception:
Example: >>> import fpformat
>>> fpformat.fix(1.23, 1)
'1.2'
|