Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Decimal data stored in NUMBER(10)
Hi:
I have a problme table. It has a field defined as NUMBER(10). But it stored with a number (with decimal) in it. When I user SQL/Plus to view the value, it shows the decimals of the value. But when I created a stored procedure, the value returned form the cursor didn't contain the decimal. I believe it rounded up the number to form a whole number. How can I get the decimal back in stored procedure?
I have tried:
v_number NUMBER(10, 3);
v_number := my_cur.number_value; v_number := TO_NUMBER (my_cur.number_value, '9999999.999'); v_number := TO_NUMBER(TO_CHAR(my_cur.number_value, '9999999.999'));
But nothing successful. Please help.
--
Best regards,
Received on Wed Sep 23 1998 - 11:00:53 CDT
![]() |
![]() |