-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
[pdo_firebird] float, double value is incorrect #13119
Comments
|
Since the process was similar to https://www.php.net/manual/en/function.sprintf.php#refsect1-function.sprintf-parameters
It was by design, not a bug in zend. However, this specification is inappropriate for obtaining fetched values, so I should consider other methods. |
TBH, it may be simpler to make it a native type. However, since changing the type is a BC break, it may be a good idea to leave 8.2 and 8.3 as string type, and make master a native type. |
@SakiTakamachi the zend_strpprintf function was already used prior to my PR. |
@nielsdos |
BTW, strangely, firebird's float type can be saved as is in the DB even with a number of digits like |
Description
The following code:
Resulted in this output:
But I expected this output instead:
After trying various things, it seems that the fraction part is displayed as a fixed 6 digits. e.g.
12.000000001
=>12.000000
It's late today, so I'll try again tomorrow.
(In the first place, I think I want the value to be a native type, but I won't consider that for now.)
PHP Version
Operating System
Ubuntu20.04(docker)
The text was updated successfully, but these errors were encountered: