[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ShopSuite-dev] undef+0=undef
From: |
Davi Leal |
Subject: |
Re: [ShopSuite-dev] undef+0=undef |
Date: |
Tue, 21 Aug 2001 15:31:25 +0100 |
* Before updating the rational.c plug-in:
shop=> select rational('1/2') + rational('1/0');
0/0 <-- OK
shop=> select rational('0/2') + rational('1/3');
1/3 <-- OK
shop=> select rational('0/2') + rational('0/3');
0/1 <-- OK
shop=> select rational('0/2') + rational('0/0');
0/1 <-------- !!!! Must be 0/0?
shop=> select rational('0/2') + rational('1/0');
0/0 <-- OK
* After updating the rational.c plug-in:
shop=> select rational('1/2') + rational('1/0');
0/0 <-- OK
shop=> select rational('0/2') + rational('1/3');
2/6 <-- Accurate, but worst behaviour
shop=> select rational('0/2') + rational('0/3');
0/6 <-- Accurate, but worst behaviour
shop=> select rational('0/2') + rational('0/0');
0/0 <-- OK, fixed
shop=> select rational('0/2') + rational('1/0');
0/0 <-- OK
I will wait up to this is fixed to commit the new changes.