TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Roy McNeill
date: 1996-08-31 00:29:36
subject: possible floating point error in BC

Hi Paul



 PE> P.S. I tried out your code, but couldn't make it print the reciprocol of

 PE> 360 (or whatever).  If you have something that does that, and are happy to

 PE> stick a PD notice on it, I would like to include it in OZPD as a routine to

 PE> do maths manually.



Consider any code I post here (0.3 lines per year on average so

far) public domain unless specifically stated otherwise.



I think it's a bit limited as is. All it does is divide one real

number by another real number, and produce a string result. A

better package would be able to use strings as inputs, as well as

being able to multiply, add, and subtract. But that starts to get

complicated - for example, multiplying two 500 digit numbers can

produce a 1000 digit answer. So we go to mantissa/exponent

notation, and stick some sort of limit on precision. Gets a bit

bigger than the 20 line program I wrote in the first place...



Cheers



--- PPoint 1.88


* Origin: Silicon Heaven (3:711/934.16)
SEEN-BY: 711/808 934
@PATH: 711/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™.