Round a decimal number

Manuel manuelbastioni at tin.it
Fri May 30 07:14:37 EDT 2003


> If you want to round the number itself, it might be a good idea to
> post here why you do, in case it's not a good idea and there are
> better ways to do it (eg, in financial applications).

Thanks to all.
:-)


I'm writing a simple exporter of 3D file format.
In some cases, in the generated file, I've a numbers like

8.70421814625e-008

The problem is that the "e-008" can't be used
in the client 3d software. I must round it??

Cheers,

           Manuel








More information about the Python-list mailing list