Conversion from numeric literals to DECFLOAT adds precision that is not 
originally present
------------------------------------------------------------------------------------------

                 Key: CORE-5697
                 URL: http://tracker.firebirdsql.org/browse/CORE-5697
             Project: Firebird Core
          Issue Type: Bug
         Environment: Firebird-4.0.0.840-0_x64 (on Windows 10 x64) 
            Reporter: Mark Rotteveel


When inserting into a table with a DECFLOAT(16) column,

Using 

insert into decfloat16 (column1) values (1E300);
insert into decfloat16 (column1) values ('1E300');

and then select cast(column1 as varchar(30)) from decfloat16 will result in:

1.000000000000000E+300
1E+300

In other words, the conversion from literal adds 15 digits of precision that 
weren't actually present in the literal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to