Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2008

Tip: Looking for answers? Try searching our database.

double rounding in gui tools

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
apattin - 15 Jan 2008 00:09 GMT
Hi,

I am trying to understand why (and when) DB2 rounds double values.
Example:

(a) Using CLP, I do this query

SELECT ref_value FROM stz_target_data WHERE version = '6.2' and g_name
= 'XXX'

I get this result:

+2.17262381600000E+000

(b) I do the same thing in the Command Editor, I get:

2.173

(c) If I click on the ref_value column it shows me the value with all
its digits, but if I then export the results, they are rounded!

How can I control the rounding?

Thanks,

Alejandrina
Serge Rielau - 15 Jan 2008 12:20 GMT
> Hi,
>
[quoted text clipped - 9 lines]
>
> +2.17262381600000E+000
This is CLI.

> (b) I do the same thing in the Command Editor, I get:
>
> 2.173
This is JDBC

So the short answer is the server has nothing to do with it.
Maybe there is a Preferences option of sorts in the commandEditor?

Have you tried dataStudio?

Cheers
Serge
Signature

Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

apattin - 22 Jan 2008 00:26 GMT
> > Hi,
>
[quoted text clipped - 28 lines]
> DB2 Solutions Development
> IBM Toronto Lab

No, we are still using 8.x...Thanks anyhow, at least I know where it's
coming from!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.