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

-=> Quoting Paul Edwards to Peter Leschev <=-
Hi!

 PL> (although that question was alot harder). I decided to use borland's 
 PL> function to convert a floating point number to a string and to find the 
 PL> digit set from there but for some reason borland only converted at most 20 
 PL> decimal places =(
 PL> Does anyone know of this limitation?????

 PE> No, but since they probably use 4 bytes to store a float, and 8 bytes
 PE> to store a double, there is a finite number of significant decimal
 PE> places.  20 is quite likely to be that limit. 

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

CYA!

... Misspelled? Impossible. My modem is error correcting!
--- FMail/386 1.02+
* Origin: Lateline BBS, Sydney; +61-2-9579-6564; 24 hours; 33.6k (3:712/841)
SEEN-BY: 50/99 620/243 623/630 711/401 409 410 413 430 808 809 932 934
SEEN-BY: 712/311 407 505 506 515 517 624 704 816 824 841 844 852 713/888
SEEN-BY: 714/906 800/1
@PATH: 712/841 624 515 711/808 934

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™.