Is it around or less than 0.01 off? Because it sounds close enough to me. You'll never get the same answer your calculator will (different precision, alg, and/or order of ops), and as long as the values are consistantly "close" you won't have a problem. If you're really worried about it, then just change the precision of the outputted display (although, I can't remember if it rounds - I never use those functions).
_________________ PI equals four, and I can prove it...
"I'll attract them with my human call.... 'I'm so wasted, I'm so wasted!'" - Dryad, Night Elf, Warcraft III Reign of Chaos
Joined: Mon 09-01-2003 6:23PM Posts: 2880 Location: Either at the source below, or in 859 TJ south
Source: TJ South
Change the percision and decimal points. As much as that must suck though, try out our current program in 53 http://web.umr.edu/~mhell/cs53/homework/h7.html. That sieve thing is beating the piss outta me.
_________________ The nicest asshole you probably wish you had never met.
Remember, Jesus loves you...but he doesn't put out.
Joined: Sat 10-18-2003 10:26PM Posts: 2954 Location: Stone's throw from Garden of the Gods, Colorado Springs
Source: MechE Building
HOLY CRAP!! You all are seriously writing a prime number seive in CS 53? That's awesome...ok you don't get it...
It's awesome because I got bored and started doing the same thing in Fortran yesterday. For fun. For something to do. And because I was tired of looking up lists of primes off of a website.
Users browsing this forum: Google [Bot] and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum