468,117 Members | 1,507 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,117 developers. It's quick & easy.

money data type

Hi lazyweb,
I'm wondering, if there is a usable money data type for python available.
A quick search in pypi and google didn't convey anything, even though the
decimal data type seemed to be planned as a money data type originaly.
Thanks for any pointers

Stephan
Jun 27 '08 #1
3 3144
Lie
On Jun 9, 10:22*pm, Stephan Diehl <stephan.di...@gmx.netwrote:
Hi lazyweb,
I'm wondering, if there is a usable money data type for python available.
A quick search in pypi and google didn't convey anything, even though the
decimal data type seemed to be planned as a money data type originaly.
Thanks for any pointers

Stephan
What is it that you feel is lacking in the decimal datatype that makes
you feel you require a money datatype?
Decimal datatype was a general purpose fixed-point number, which is
usually the behavior required for money calculation, but it's not
named 'money' because this behavior isn't only useful for money
calculation, so they don't name it money.
Jun 27 '08 #2
Lie wrote:
On Jun 9, 10:22¬*pm, Stephan Diehl <stephan.di...@gmx.netwrote:
>Hi lazyweb,
I'm wondering, if there is a usable money data type for python available.
A quick search in pypi and google didn't convey anything, even though the
decimal data type seemed to be planned as a money data type originaly.
Thanks for any pointers

Stephan

What is it that you feel is lacking in the decimal datatype that makes
you feel you require a money datatype?
Decimal datatype was a general purpose fixed-point number, which is
usually the behavior required for money calculation, but it's not
named 'money' because this behavior isn't only useful for money
calculation, so they don't name it money.
I'm actually quite sure that the decimal data type will be sufficient for
what I plan to do, but in a general setting, one would need currency
support, maybe different rounding rules for different currencies, exchange
rates, etc.

Jun 27 '08 #3
Lie
On Jun 10, 12:02*am, Stephan Diehl <stephan.di...@gmx.netwrote:
Lie wrote:
On Jun 9, 10:22*pm, Stephan Diehl <stephan.di...@gmx.netwrote:
Hi lazyweb,
I'm wondering, if there is a usable money data type for python available.
A quick search in pypi and google didn't convey anything, even though the
decimal data type seemed to be planned as a money data type originaly.
Thanks for any pointers
Stephan
What is it that you feel is lacking in the decimal datatype that makes
you feel you require a money datatype?
Decimal datatype was a general purpose fixed-point number, which is
usually the behavior required for money calculation, but it's not
named 'money' because this behavior isn't only useful for money
calculation, so they don't name it money.

I'm actually quite sure that the decimal data type will be sufficient for
what I plan to do, but in a general setting, one would need currency
support, maybe different rounding rules for different currencies, exchange
rates, etc.
Shane Geiger wrote to me:
This might be all you need:
http://aspn.activestate.com/ASPN/doc...l-recipes.html

Possibly he mistakenly press "Reply to Author" instead of "Reply" (if
he's accessing the mailing list from Google Groups)
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

24 posts views Thread by Batista, Facundo | last post: by
1 post views Thread by Jason Szotak | last post: by
11 posts views Thread by ZRexRider | last post: by
5 posts views Thread by Ronald S. Cook | last post: by
1 post views Thread by =?Utf-8?B?dHRocm9uZQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.