Is there a built-in function in PL/SQL to do the following or should I just write a function:
I want to format a dollar amount field. If the field value has no decimal places, format the number to have two decimal places. If it has 1 decimal place, add a zero after it to have two decimal places. Leave the field alone if there are already two decimal places.
I want to format a dollar amount field. If the field value has no decimal places, format the number to have two decimal places. If it has 1 decimal place, add a zero after it to have two decimal places. Leave the field alone if there are already two decimal places.