Article View: borland.public.cppbuilder.database.ado
Article #4222Rounced values in Oracle (again)
From: Graham Reeds
Date: Mon, 25 Feb 2002 11:36
Date: Mon, 25 Feb 2002 11:36
25 lines
2220 bytes
2220 bytes
I posted this question a few months ago (with sample code) and never got a reply. Being busy on other projects I've neglected to visit this forum as much as I should so I don't know whether someone else has posted the same question and received an answer. Any way... I have a database in Oracle 8i that stores values to 9 decimal places. Storage is fine. Looking at the data in SQL*Plus shows the correct numbers as I entered them. However returning the values out of the database using either ADO or third party Direct Oracle Access the values are rounded which is very annoying when precision is paramount. I wonder if anyone else has had this problem and can suggest a solution. I was thinking it was Oracle, but I can't find a way of increasing the precision of the returned values but then again I can't find a way of increasing the returned precision in Builder. Currently I am having to multiply the values by 100,000 and divide them again when they come out. However that makes numerical comparisons awkward while the data is still in the database. One suggestion was to look up whether BCD are used on the values...it's been a while so I can quite remember what the person said but I remember being thoroughly confused by his statement. -- Yours faithfully, Graham Reeds. grahamr@omnieng.co.uk | http://omnieng.co.uk/
Technical Details
Message-ID:
<3c7a21e2_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,372b251f1ce25c13,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-02-25 03:39:58 PST From: "Graham Reeds" <grahamr@omnieng.co.uk> Newsgroups: borland.public.cppbuilder.database.ado Subject: Rounced values in Oracle (again) Date: Mon, 25 Feb 2002 11:36:47 -0000 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 212.172.148.2 Message-ID: <3c7a21e2_1@dnews> X-Trace: dnews 1014637026 212.172.148.2 (25 Feb 2002 03:37:06 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews