[Erp5-dev] Cannot pack SPL - is it float rounding problem? Is it _a problem_?
Łukasz K. Nowak
lukasz.nowak at ventis.com.pl
Thu May 24 10:55:32 CEST 2007
Hello,
It is not possible to pack Sale Packing List, even giving it proper
values.
Eg. if I'm trying to sell 60.0 of resources it is going well, but with
59.333333333333336 - I'm not able to pack SPL, even when Container has
proper exact value.
Is it a bug? Is there any test for it? I think it is related to
http://www.erp5.org/Discussion/FloatRounding - is there any progress
with this problem?
Unit test attached.
Thanks,
Luke
PS. Any comments to style etc of unit test are welcome.
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testVentisSPLPackingRounding.py
Type: text/x-python
Size: 6158 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070524/642ba727/attachment.py>
More information about the Erp5-dev
mailing list