TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Peter Leschev
from: Paul Edwards
date: 1996-08-24 12:49:14
subject: possible floating point error in BC

PL> What about a long double? Shouldn't it be able to hold over 3000 decimal
PL> places???

Let's see, a 32-bit integer is accurate to 1/(2**32), ie too small for my
calculator to register.  A "long double" is 8 bytes in Watcom C
for OS/2.  Therefor it is accurate to 1/(2**64).  If you can calculate
1/(2**64), and it comes to (say):

0.0000000000000000000000000001567

Then the first non-zero digit appears in location 27, so it is accurate to
27 digits (plus or minus 1 or 2 of course).  BFN.  Paul. 
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.