Walter Neumann on Tue, 18 Mar 2003 10:49:50 -0500 (EST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: real precision again


Another puzzling one (default precision):

(10:44) gp > cos(Pi)
%15 = -1.000000000000000000000000000
(10:44) gp > %-1
%16 = -2.000000000000000000000000000
(10:44) gp > %-2
%17 = -4.000000000000000000000000000
(10:44) gp > \x
[&=08320fec] REAL(lg=11,CLONE):0500000b  (-,expo=1):c0800001  ffffffff
ffffffff  ffffffff  ffffffff  ffffffff  fffffffe  00000000  00000000
00000000

(10:44) gp > %-4
%18 = -8.000000000000000000000000000
(10:44) gp > \x
[&=0832108c] REAL(lg=12,CLONE):0500000c  (-,expo=2):c0800002  ffffffff
ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  00000000  00000000
00000000  00000000

(10:44) gp > %-8
%19 = -16.00000000000000000000000000
(10:45) gp > \x
[&=0832112c] REAL(lg=13,CLONE):0500000d  (-,expo=3):c0800003  ffffffff
ffffffff  ffffffff  ffffffff  ffffffff  ffffffff  80000000  00000000
00000000  00000000  00000000

--walter