Hi,
I use Oracle 10g.
I have a query like :
select
round(col_cumul,:USER_NUMBER_PRECISON) as "Dist. cumul."
from
my_table
where :USER_NUMBER_PRECISON is a variable representing the number of decimal the user wants to show.
For exemple, when :USER_NUMBER_PRECISON = 3, it can returns :
1258.8
105.526
2458.35
122
and I want:
1258.800
105.526
2458.350
122.000
I found this page : http://www.oradev.com/oracle_number_format.jsp
But I can't make it works as my number of decimals can change depending of the user choice (:USER_NUMBER_PRECISON variable).
Any help would be appreciated.
Thanks.
Yann.