2014-07-24 15:37 GMT+02:00 Cédric Krier <cedric.kr...@b2ck.com>:

> On 24 Jul 14:33, Guillem Barba Domingo wrote:
> > 2014-07-24 12:12 GMT+02:00 Cédric Krier <cedric.kr...@b2ck.com>:
> >
> > If there is interest to add "split_by_number()" to Move API I will
> supply a
> > review and we can discuss about its implementation.
>
>
> Can not find interest as far there are no example of usage.


OK

> A little bit Off-topic of this thread, I think we could use Decimal also
> > for quantities, not only for currency-related amounts.
> > As you can see in 'farm' module [1], when you need to do "advanced"
> > operations with stock quantities, you need to convert it to Decimal to
> > avoid problems with rounding and missing decimals.
> > But the change done to have the digits definition in config file makes me
> > think that it could generate performance issues...
>
> There are no need of Decimal for quantities.
> Decimal doesn't magicaly fix the rounding issues.


Decimal avoid 0.0 != 0.0 problems

-- 
Guillem Barba
http://www.guillem.alcarrer.net

Reply via email to