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!

Displaying DB2 Floats on Unix

Status
Not open for further replies.

virtualjon

Technical User
Aug 6, 2003
12
GB
Hi guys,

Just a quickie. I am using DB2 at the Unix command line, and when running sql queries, FLOAT fields are displayed in the output as:

+6.62557333433470E+001

rather than

66.25573334334702 etc, as stored in the database.

Is there any way to change the query in order to get the full value contained in the field?

All help gratefully received.

Cheers

Jon
 
Jon,

try casting the value to char field. Would that help?

Cheers
Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top