While Steven was reading other messages, Christian Felde wrote:
CF> Hi all...
Hey Christian...
CF> Her's the source code:
>
CF> float pi; // Here's your problem.
// Try using double instead of float.
double pi; // This works fine on my compiler. (Turbo Borland v3.0 DOS)
>
CF> Can you help me? If you can, then thanx...
I believe that floats have very low limits as to decimals... so I think
that it might be this problem... (it might have truncated the last number,
which makes it not equal. ) That's just my guess.
Steven Lei
From: Las Vegas, Nevada, USA
E-mail = SpewMuffin@Juno.Com
... Disc space - the final frontier!
___ Blue Wave/DOS v2.30 [NR]
--- PCBoard (R) v15.21/M 2
---------------
* Origin: The Board running PCBoard 15.21 (702) 221-0083 (1:209/222)
|