Hello Marco,
Today, I noticed a display issue with some huge number values when querying a table in an SQL Window. It seems that some additional decimals are being added at the end of the number (the 6th decimal in my case)
I executed the following script on my database :
In this case, the value displayed for column VAL in the select statement is 123456789012.2200010 for the first record and 123456789012.1000060 for the second record.
If I run the same query but using some other clients (SQL*Plus or Oracle SQL Developer), the result returned is correct without the extra decimals. I also noticed that this issue doesn't occur if the format of the column VAL is defined as NUMBER without format specification
For your information, I am using PL/SQL Developer 12.0.5.1828 (32 bit) on an Oracle 12c database.
Today, I noticed a display issue with some huge number values when querying a table in an SQL Window. It seems that some additional decimals are being added at the end of the number (the 6th decimal in my case)
I executed the following script on my database :
SQL:
CREATE TABLE TEST_NUMBER (ID NUMBER, VAL NUMBER(22,7));
INSERT INTO TEST_NUMBER(ID,VAL) VALUES(1,123456789012.22);
INSERT INTO TEST_NUMBER(ID,VAL) VALUES(2,123456789012.1);
SELECT ID, VAL, (VAL-TRUNC(VAL)) AS DECIMAL_VAL FROM TEST_NUMBER;
In this case, the value displayed for column VAL in the select statement is 123456789012.2200010 for the first record and 123456789012.1000060 for the second record.
If I run the same query but using some other clients (SQL*Plus or Oracle SQL Developer), the result returned is correct without the extra decimals. I also noticed that this issue doesn't occur if the format of the column VAL is defined as NUMBER without format specification
For your information, I am using PL/SQL Developer 12.0.5.1828 (32 bit) on an Oracle 12c database.