Closed xhit closed 2 years ago
I have modified the test code and checked the values and they seem to be fine. How about it?
https://github.com/nakagami/firebirdsql/commit/1d8ebc461c653b465a444d240fa582bcdebe9821
The test works because numbers are two int and one decimal (1.1, -20.2, etc...) but fails when numbers is three integer and one decimal point (100.1, 156.2) and when you have two decimals points with two int (12.01, 90.56).
I could see there was a mistake.
Perhaps we could fix it.
If value of column DECFLOAT(x) is a valid integer without decimal, returns the correct result, but if we have a number with decimal, so the value returned is not correct.
Example: 20.01 returns like 0.01 and 12.01 returns like 2.01
Example code: