Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

round issue in numeric column

Status
Not open for further replies.

bubu2006

MIS
May 2, 2006
157
US
Hi,

I have a report where I am printing a numeric column. I am using Oracle10g, Crystal Report10. The column name is Mynumber and data type is Number (20, 7). I know by default Crystal report rounds by two decimal point. Is there any way I can display the value the way it is? I mean if the value is .7892 I want to display .7892. I know if I convert this data type as char it will work. But without changing the data type can I write formula in decimal and rounding section of format field?

Thanks in advance,
bb
 
Right-click on the field, Format Field. This lets you set them.

You can also display using ToText({value}, 4)

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
This will not help. Because I can have value like
12.1
12.12
.123
12.1234
12.12345
12.123456
.1234567
 
Hi,
Did you try the formatting method?..You can have as amny digits to the right of the decimal as you need ( within reason)..

Be sure the # in Oracle actually has the values you think ( Just because it is defined as a Number(20,7) does not mean that ALL entries have all those digits..)


[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
I can not fix the decimal pointer. I have changed my databse view.

Thanks.
 
Please my post in thread767-1235276 for a method of displaying different numbers of decimals.

-LB
 
Interesting. I have changed that in Oracle view. I will try your formula next time. Thanks a lot for you help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top