-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some more database info #88
Comments
SQLite always returns 0.30000000000000004 |
If you send me a PR on the subject I'd be happy to merge it. |
IMO that's more correct:
Probably it's the same for MS SQL: https://docs.microsoft.com/en-us/sql/t-sql/data-types/constants-transact-sql?view=sql-server-2017#float-and-real-constants. |
A bug I filed about IEEE 754 documentation a while ago for MySQL:
https://bugs.mysql.com/bug.php?id=57519
Support for NaN differs between MySQL and PostgreSQL. I didn't see any information about the 'special' values on http://0.30000000000000004.com
Note that there are different behaviors within one database system:
http://sqlfiddle.com/#!6/12e70/3
With Microsoft SQL Server 2014 this has the following output:
With MySQL 5.6:
http://sqlfiddle.com/#!9/2e75e/1
Oracle 11gR2 returns 0.3 in both cases:
http://sqlfiddle.com/#!4/0509e6/4
Note that Oracle has FLOAT and BINARY_FLOAT
http://sqlfiddle.com/#!4/cf223/1
The text was updated successfully, but these errors were encountered: