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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Number data type retrived with decimal points. 1

Status
Not open for further replies.

Maniyur

Programmer
Aug 8, 2003
11
US
I am using Crystal Reports 8.5 with Oracle 9.2.

While retrieving data using ODBC (CR Oracle 8 v3.6 / MS ODBC for Oracle) the number datatype is retrieved with two decimal points..for example, value 4000 in databse shows up as 40.00.

I am not sure if this is a problem with ODBC driver?

Please help.
 
The decimals are the default for numbers. You can change it using "Format field", I believe.
 
I did try "Format Field" in Crystal. It does not work.
It suppresses the last 2 digits. ie, 4000 is diplayed as 40 when I change the format.It should show up as 4000.
 
These are the stepe I took for formatting.

Right clicked on field. Chose "Format Field". Under "Number" tag chose the format without decimal points.
Eg: -1123. Also I did the same setting using the "Ooptions" Menu.

Looks like when the report gets the value it adds those decimal points automatically.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top