[Python-Dev] PEP 327: Decimal Data Type

Aahz aahz at pythoncraft.com
Thu Feb 5 16:52:25 EST 2004


On Mon, Feb 02, 2004, Batista, Facundo wrote:
>
> So, we need to choose one of three ways to obtain an exact conversion:
> 
>     1. Without a second parameter.
>     2. With a second parameter "big enough" or a special value (0? -1?)
>     3. With another method. Name?

Decimal.fromFloat()
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"The joy of coding Python should be in seeing short, concise, readable
classes that express a lot of action in a small amount of clear code -- 
not in reams of trivial code that bores the reader to death."  --GvR



More information about the Python-Dev mailing list