round probleme under python 2.0

John Machin machin_john_888 at hotmail.com
Mon May 21 06:07:13 CEST 2001


William Famy <william.famy at noos.fr> wrote in message news:<3B06AECF.107984A0 at noos.fr>...
> Ok and thanks for the solution but i can't print in a file 0.20000000000000001
> instead of 0.2 !!
> I will try FixedPoint.py. I am ready to test your decimal.py but i am a python
> newbe and i do not a very fluent english. so tell me how help you for the
> decimal.py and i will do my best.
> 

Yeah well i do not a very fluent french either, but here goes:

Si vous ne voulez pas "0.20000000000000001", essayez ceci:

   print "%.4f" % foo

Ce donne "0.2000" ...

A propos de votre ".sig", est-ce possible que "FW" == "Fils de Warlord"?

> 
> --
>                             \\\|///
>                           \\  - -  //
>                            (  @ @  )
> +-----------------------oOOo-(_)-oOOo--------------------+
> |Famy William  36 avenue des barattes 74000 Annecy France|
> |email:william.famy at noos.fr                              |
> |      william.famy at mail-enseignant.com                  |
> +--------------------------------Oooo--------------------+
>                            oooO   (   )
>                           (   )    ) /
>                            \ (    (_/
>                             \_)



More information about the Python-list mailing list