benamorton
Technical User
- Mar 9, 2004
- 24
Hi all,
I am working with a VIEW in SQL plus (9i or 11g) and for some reason when it is returning results (dollar amount column), it is leaving off the decimal places, essentially just rounding down.
I know I can do a to_char on this (select to_char(amt,'999,999,999.99') from transactions) but I want the output to be a number, so this is not an option for me.
I have tried this, but it is not working as expected: select to_number(amt,'999,999.99') from trans
TO_NUMBER(AMT,'999,999.99')
---------------------------
-16
16
-13
13
Any thoughts would be greatly appreciated, thanks!
I am working with a VIEW in SQL plus (9i or 11g) and for some reason when it is returning results (dollar amount column), it is leaving off the decimal places, essentially just rounding down.
I know I can do a to_char on this (select to_char(amt,'999,999,999.99') from transactions) but I want the output to be a number, so this is not an option for me.
I have tried this, but it is not working as expected: select to_number(amt,'999,999.99') from trans
TO_NUMBER(AMT,'999,999.99')
---------------------------
-16
16
-13
13
Any thoughts would be greatly appreciated, thanks!