On Thu, Oct 22, 2015 at 11:55 PM, Igor Tandetnik <igor at tandetnik.org> wrote:

> On 10/22/2015 4:25 PM, Rousselot, Richard A wrote:
>
>> FWIW, MySQL and Oracle both return all yes for that query.
>>
>
> In MySQL, 9.2 is a literal of DECIMAL type, which is in fact represented
> as a finite decimal fraction. SQLite doesn't have such a type. You would
> likely observe similar results in MySQL if you write your constants like
> this: 9.2e0 (scientific notation makes them have FLOAT or DOUBLE type).
>

And oracle's NUMBER can be up to 20 bytes (21 unsigned), stores number is
base-100, i.e. each byte represents 2 base-10 digits.
http://www.orafaq.com/wiki/Number

SQLite only uses IEEE double, which often cannot represent accurately even
small (as in text) numbers with a decimal point. You can use Oracle's
BINARY_DOUBLE to force it using an IEEE double. FWIW. --DD

Reply via email to