|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Oracle decimals...
Hi everyone,
I've got an Oracle DB that I need to output data in a decimal format. Sample data such as 40.00 gets written into Oracle as 40. I've got a precision = 6 and a scale = 2. Any thoughts on how to get that 40 to display in my query as 40.00?? I'm sure there's an easy way, i just can't find it anywhere. ![]() |
|
#2
|
|||
|
|||
|
select to_char(my_field,'9999.90')
from my_table |
|
#3
|
|||
|
|||
|
storage and display are completely separate. you must either format the query as shown in prior post or set a format mask in your form.
|
|
#4
|
|||
|
|||
|
Hello,
if you want leading 0 you ending 0 you can use: select to_char(my_field,'0999.90') from my_table |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Oracle decimals... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|