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 tha
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 o
> 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 ca
ternative solutions.
And one 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
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
>
ailto:[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 THIS BE A THREAD OR A SEPERATE LIST?
>
> Many of ius are independants, and write code for the love of it- or to
&g
13:57 -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
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
> 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
n
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
10 matches
Mail list logo