Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

00.00 format when equal to 0 for money

911012Apr 2 2012 — edited Apr 2 2012
One of my user wants this format 00.00 when cash is equal to 0 instead of 0.00

at the moment i got
to_char(:price,'90.00')
was going to do something like this but it feels very stupid.(Range is 0 - 99.99)
decode(to_char(:price,'90.00'),'0.00','00.00',to_char(:price,'90.00'))
*Side question.... i might try to talk the person out of it because i never seen a numeric number being 00.00 before. Is 00.00 even consider standard?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2012
Added on Apr 2 2012
4 comments
1,824 views