My Company wants to represent simple numbers, like 123.56 as 1+23.56[pre]
0 would be 0+00.00
1 would be 0+01.00
2 would be 0+02.00
3 would be 0+03.00
3.5 would be 0+03.50
...
12034.56 would be 120+34.56[/pre]
I can keep this data as VARCHAR2, but I would rather keep it as a NUMBER(13, 2) and display it in this weird way.
If I do keep it as a NUMBER, how can I format that number to get the right display?
Something like:[tt]
SELECT TO_CHAR(1290, '99999999990[red]+[/red]00.00') AS MYNUMBER FROM DUAL[/tt]
but the [red]+[/red] causes an error...
Positive values only.
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson
0 would be 0+00.00
1 would be 0+01.00
2 would be 0+02.00
3 would be 0+03.00
3.5 would be 0+03.50
...
12034.56 would be 120+34.56[/pre]
I can keep this data as VARCHAR2, but I would rather keep it as a NUMBER(13, 2) and display it in this weird way.
If I do keep it as a NUMBER, how can I format that number to get the right display?
Something like:[tt]
SELECT TO_CHAR(1290, '99999999990[red]+[/red]00.00') AS MYNUMBER FROM DUAL[/tt]
but the [red]+[/red] causes an error...
Positive values only.
---- Andy
"Hmm...they have the internet on computers now"--Homer Simpson