[Tutor] Money matters

2007-06-28 Thread Terry
I am going to need to be handling money calculations and was wondering about the float problem in my calculations. Should I simply run the results of all calculations through something like this: from __future__ import division ... ... s=(int(round(s, 2)*100))/100 Or should I be using Decimal

Re: [Tutor] Money matters

2007-06-28 Thread Brian van den Broek
Terry said unto the world upon 06/28/2007 02:55 PM: I am going to need to be handling money calculations and was wondering about the float problem in my calculations. Should I simply run the results of all calculations through something like this: from __future__ import division ...

Re: [Tutor] Money matters

2007-06-28 Thread Tiger12506
Should I simply run the results of all calculations through something like this: from __future__ import division ... ... s=(int(round(s, 2)*100))/100 Or should I be using Decimal on all money calculations? Firstly - that does not magically fix the imprecisions in floating point numbers.

Re: [Tutor] Money matters

2007-06-28 Thread Terry
Thanks! I am playing with Decimal suggested recipe now and it is just way cool! Perfect! In fact, more than perfect! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] MONEY MATTERS

2007-03-22 Thread wesley chun
ok, SHOULD THIS BE A THREAD OR A SEPERATE LIST? Many of ius are independants, and write code for the love of it- or to promote and sell independantly. So possibly a thread discussing ways to turn useful code into moiney is a useful idea. If the wish of the list is a thread here, we can do

Re: [Tutor] MONEY MATTERS

2007-03-22 Thread Steve Oldner
day, I will have free time to work on my million dollar app. (LOL!) Thanks, Steve Oldner -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kirk Bailey Sent: Wednesday, March 21, 2007 10:14 PM To: tutor@python.org Subject: [Tutor] MONEY MATTERS ok, SHOULD

Re: [Tutor] MONEY MATTERS

2007-03-22 Thread Kent Johnson
Kirk Bailey wrote: ok, SHOULD THIS BE A THREAD OR A SEPERATE LIST? Many of ius are independants, and write code for the love of it- or to promote and sell independantly. So possibly a thread discussing ways to turn useful code into moiney is a useful idea. If the wish of the list is a

Re: [Tutor] MONEY MATTERS

2007-03-22 Thread Kirk Bailey
] MONEY MATTERS ok, SHOULD THIS BE A THREAD OR A SEPERATE LIST? Many of ius are independants, and write code for the love of it- or to promote and sell independantly. So possibly a thread discussing ways to turn useful code into moiney is a useful idea. If the wish of the list is a thread here

Re: [Tutor] Money Matters

2007-03-22 Thread Jaggo
-0400 From: Kirk Bailey Subject: [Tutor] MONEY MATTERS To: tutor@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed ok, SHOULD THIS BE A THREAD OR A SEPERATE LIST? Many of ius are independants, and write code for the love of it- or to promote

[Tutor] MONEY MATTERS

2007-03-21 Thread Kirk Bailey
ok, SHOULD THIS BE A THREAD OR A SEPERATE LIST? Many of ius are independants, and write code for the love of it- or to promote and sell independantly. So possibly a thread discussing ways to turn useful code into moiney is a useful idea. If the wish of the list is a thread here, we can do