On Tue, 2012-04-24 at 01:08 +1000, Steven D'Aprano wrote:
[...]
> 
> * Use the decimal module instead of floats. You still have finite precision,
>   but you can choose how many *decimal* places to store instead of having a
>   fixed number of *binary* places. (But decimal is much slower.)

Alternatively use http://packages.python.org/bigfloat/ or possibly
http://code.google.com/p/mpmath/
> 
> By the way, the code that you sent is unreadable. Please make sure that you
> send plain text email, and that indentation is not lost. Without indentation,
> it is impossible to understand your code.

Indeed. The lack of indentation was a barrier to contemplating looking
at the code. Especially since indentation is meaningful in Python!

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to