Message170771
On Wed, Sep 19, 2012 at 4:32 PM, Ram Rachum <report@bugs.python.org> wrote:
> But that number, 1.15, is stored in a Django decimal field.
My criticism was towards the idea that one may need to multiply
timedelta by a dollar amount or convert a dollar amount to a
timedelta. Storing dollar amounts is an important use case for
Decimal and there are several reasons why Decimal is a better choice
than float for this. On the other hand, I don't see why use of
Decimal would be required in your example.
Do you have any real world use cases where Decimal is clearly
preferred over float and there is a need to multiply Decimals by time
deltas? |
|
Date |
User |
Action |
Args |
2012-09-19 20:57:20 | Alexander.Belopolsky | set | recipients:
+ Alexander.Belopolsky, rhettinger, facundobatista, mark.dickinson, belopolsky, vstinner, skrah, cool-RR |
2012-09-19 20:57:20 | Alexander.Belopolsky | link | issue14262 messages |
2012-09-19 20:57:19 | Alexander.Belopolsky | create | |
|