How to supress zeroes? [message #121605] |
Tue, 31 May 2005 01:15 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
dhamayanthi
Messages: 17 Registered: April 2005 Location: India
|
Junior Member |
|
|
Hi,
This is regarding with Oracle graphics builder. i need to show the x and y label in chart as 10,12,14 and there is a chance to get decimal numbers like, .0000043,.0000021 and .000123 etc.
i have given number format like, 99.99999 and it shows 12.00000 if 12, 10.00000 if 10. i want to show decimals, only if it has.
Please Help me,
Thanks,
Dhamayanthi K
|
|
|
|
|
|
Re: How to supress zeroes? [message #121865 is a reply to message #121605] |
Wed, 01 June 2005 09:17 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
dhamayanthi
Messages: 17 Registered: April 2005 Location: India
|
Junior Member |
|
|
Actually, i have the list of values:
they are,
10,12,14.....
.000002,.000004,.000006.....
i have given format as 99.999999.
for former, graphics builder shows,
as 10.000000,12.000000 and etc.
for later, it shows
as .000001,.000004,.000006.
later is okay. but former is very much odd to see.
can u give soln to that?
|
|
|
Re: How to supress zeroes? [message #121877 is a reply to message #121605] |
Wed, 01 June 2005 10:21 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
A Ikramur Rahman
Messages: 81 Registered: May 2004
|
Member |
|
|
dhamayanthi,
create a new dummy field for display purpose only and do like this:
IF your_actual_field < .01 THEN
your_display_field := your_actual_field;
ELSE
your_display_field := to_char(:your_actual_field,'99.99') ;
END IF;
|
|
|