*W
C U/W-FOCAL: 16K-V4 NO/DA/TE
01.10 SET E=1
01.20 SET N=0
02.10 SET E=E/2
02.20 SET N=N+1
02.30 IF (1+E-1) 2.10,3.10,2.10
03.10 TYPE %,"FOCAL EPS = ",2*E,!
03.20 TYPE %2,"APPROX SIG BITS = "N-1,!
03.30 QUIT
*GOTO 1.10
FOCAL EPS = 5.820766092E-11
APPROX SIG BITS = 34
*T FEXP(1421),!2**n == exp(1421), or n is about 2050. log2(2050) == 11 bits for exponent. 34+11=46 bits, though, so I've made a mistake of some sort not accounting for 2 extra bits. What prompted this was noticing that IEEE uses less bits for exponent to provide better precision in mantissa. So exp(709) is that max using IEEE format floats.
1.4E+617
*T FEXP(1422),!
0
--
You received this message because you are subscribed to the Google Groups "PiDP-8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pidp-8+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pidp-8/b5420f38-5605-4a47-86fc-abb511f13030%40gmail.com.