From: Lord Shaman Newsgroups: comp.os.msdos.djgpp Subject: DJGPP and advanced math Date: Tue, 24 Dec 1996 20:33:41 +1100 Organization: Lord Shaman Lines: 45 Distribution: inet Message-ID: <32BFA374.7CEC@nlc.net.au> Reply-To: shaman AT nlc DOT net DOT au NNTP-Posting-Host: dialine29.nlc.net.au Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----------68C39226A9B2" To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp ------------68C39226A9B2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii I just tried to implement the RSA public key encryption algorithm and I have to say that it was a total breeze using DJGPP and the STL Integer class. My next project is a custom raytracer engine that renders a scene that is rendered inside a sphere 16 light minutes accross. Can the normal float can handle that kind of data if 1.0 represents one metre? Can the double? Can the long double? Does it matter? (Note: One pixel at 1024x768 represents a 6000x6000 km area at that distance.) If the only way to do it is with "arbitary" or high precision emulate FP, is there a class out there that can do it and be totally compatible with the old FP math? (Ie: I just have to change a typedef somewhere to make the switch.) ------------68C39226A9B2 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii

I just tried to implement the RSA public key encryption algorithm and I have to say that it was a total breeze using DJGPP and the STL Integer class. My next project is a custom raytracer engine that renders a scene that is rendered inside a sphere 16 light minutes accross. Can the normal float can handle that kind of data if 1.0 represents one metre? Can the double? Can the long double? Does it matter? (Note: One pixel at 1024x768 represents a 6000x6000 km area at that distance.)
 
If the only way to do it is with "arbitary" or high precision emulate FP, is there a class out there that can do it and be totally compatible with the old FP math? (Ie: I just have to change a typedef somewhere to make the switch.)
------------68C39226A9B2--