Article View: alt.pl.comp.lang.csharp
Article #431divide operation precision is changing
From: Maor Mishkin
Date: Tue, 20 Jan 2004 14:58
Date: Tue, 20 Jan 2004 14:58
12 lines
1359 bytes
1359 bytes
I have a problem with divide operation, the example is: double a =10.0; double b =220.0; double divAns = a/b; the calculation true result is 0.04545454545454545 but for some resone the calculation is changing to get the result 0.0454545468091 if you know how can i get the system to calc the first calculation or if you know of an object like BigNumber in java that can make calculation with a specipic precision it could realy help me alot. Maor
Technical Details
Message-ID:
<400d4213$1@news.012.net.il>Path:
mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsfeed.bit.nl!newsfeed.bit.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!feeder1.essentkabel.com!seanews2.seabone.net!news.012.net.ilShow Full Headers
Complete Article Headers
From: "Maor Mishkin" <ju...@omnivee.com> Newsgroups: alt.pl.comp.lang.csharp Subject: divide operation precision is changing Date: Tue, 20 Jan 2004 16:58:31 +0200 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 212.199.10.183.forward.012.net.il Message-ID: <400d4213$1@news.012.net.il> X-Trace: news.012.net.il 1074610707 212.199.10.183.forward.012.net.il (20 Jan 2004 16:58:27 +0200) Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsfeed.bit.nl!newsfeed.bit.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!feeder1.essentkabel.com!seanews2.seabone.net!news.012.net.il MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit