Date: Wed, 13 Jul 2005 09:58:01 +0200 From: John Oxley <john@yoafrica.com> To: Nikolas Britton <nikolas.britton@gmail.com> Cc: questions@freebsd.org Subject: Re: Whats up with KCalc? Message-ID: <20050713075801.GC8552@yoafrica.com> In-Reply-To: <ef10de9a05071223136515c381@mail.gmail.com> References: <ef10de9a05071203165b346ce1@mail.gmail.com> <200507120941.12027.ean@hedron.org> <42D3D25A.9040107@speechpro.com> <200507121110.01535.ean@hedron.org> <ef10de9a05071213443f407987@mail.gmail.com> <ef10de9a05071223136515c381@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Wed, Jul 13, 2005 at 01:13:24AM -0500, Nikolas Britton wrote:
> On 7/12/05, Nikolas Britton <nikolas.britton@gmail.com> wrote:
> Ok... this thing is WAY OFF... if you type in 85.49 and then hit the +
> key the thing automatically jumps to
> 85.48999999999999488409230252727866172791!!! My SuSE box shows "85.49"
> but if you copy and paste the number into a text editor it shows
> 85.48999... too.
IANA Mathematician, but my guess would be that there is a rounding
error. KCalc as you have all said uses 96bit long double precision.
This means that floating point numbers are stored as 96bit doubles.
And yes 46 is a floating point (46.000). My varsity days are a bit
hazy, but I believe a double is stored as X bits ^ Y bits. Not sure of
the ratios of X and Y though. This means you can only get a certain
accuracy. If X is 8 for example, the accuracy is 1/(268435456) =~
3.725290e-09.
Therefore your smallest unit number is that and any other number will be
a multiple of that, raised to a power which is where the Y bits comes
in. Oh I forgot to mention that X+Y = 96.
This is probably a very bad explanation and hopefully someone can do it
better :)
-John
[-- Attachment #2 --]
0 *H
010 + 0 *H
008ѭ0
*H
0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
050531065132Z
060531065132Z0C10UThawte Freemail Member1 0 *H
john@yoafrica.com0"0
*H
0
fB괙pC/bl AD"FTXS0wHO~(+$I;z!R5){럴δ箢+[T:Y[e\)b$|?قe(P];VRqF2*n^Rx*'qAT:{Ҩ+T<x-9T%BSKo^+opdPa.UbTWƏgYO&e}4 wŨS
HOɿ9 .0,0U0john@yoafrica.com0U0 0
*H
WĎ.O *]lՕ@3ir14?
-?'?gED|I\|B6g GfE? Gny
k. (mZ+,0?0
0
*H
010 UZA10UWestern Cape10U Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H
personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
*H
0 Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr` 00U0 0CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
*H
HP.
fgCL!6-6/P p<ab:~ t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1D0@0i0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAѭ0 + 0 *H
1 *H
0 *H
1
050713075801Z0# *H
1{359p}g0R *H
1E0C0
*H
0*H
0
*H
@0+0
*H
(0
*H
&J5s'ImŨna=a]xO( ,M/EVƴ"̘ I422^ΊWOo1JIH.L)G{<]D6y`,c}iT
/{FO[m,G@y?}E냓U zijHE-o ?}X9N*Be (x[%5It@?aO*Z/h+
M̂
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050713075801.GC8552>
