We have a table with a 'price' field of type NUMBER(20,7)
.. In TOAD I do this:
update mytable set price = 1234567890123.1234567;
Then I do this select:
select price, to_char(price) from mytable
PRICE TO_CHAR(PRICE)
1234567890123.12 "1234567890123.1234567"
Question is, why does TOAD truncate the result when displaying the NUMBER(20,7) field? The data is obviously there as it prints out with to_char.
??
If you run your queries with F9 (or click the “execute/compile statement at caret” button), then this is controlled in Toad's main options window: Options -> Data Grids -> Data -> Display Numbers in Scientific notation. If you get any results with #'s instead of digits, you can add more 9's above.
open the options window. along the left, go to Data Grids -> Data. along the left, go to General. now the decimal/thousands values are not blank and you can set them.
Toad limits numbers in the data grid to 15 digits. I believe this is because excel limits numbers to 15 digits as well (or used to limit them). You can turn on "scientific notation" in options -> data grids -> data, check box Display large numbers in scientific notation. That won't probably help, either.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With