Re: Floating Point Arithmetic

2004-12-03 Thread Malcolm Kay
On Fri, 3 Dec 2004 07:23 pm, Florian Hengstberger wrote: > Hi! > > I tried to figure out the capability of double: > so I calculated > > d=2**n (with a for-loop) > > increasing n step by step. > Of course I get a floating point exception when > d is bigger than 10**308. > But what makes me wonderin

Floating Point Arithmetic

2004-12-03 Thread Florian Hengstberger
Hi! I tried to figure out the capability of double: so I calculated d=2**n (with a for-loop) increasing n step by step. Of course I get a floating point exception when d is bigger than 10**308. But what makes me wondering is the fact that printing printf("%lf",d) gives me the full range of numb