From: James W Sager Iii Newsgroups: comp.os.msdos.djgpp Subject: Whats up with sqrt? Date: Sat, 17 Mar 2001 00:18:33 -0500 Organization: Carnegie Mellon, Pittsburgh, PA Lines: 18 Message-ID: <0ugjCdG00UjKRAO0dP@andrew.cmu.edu> NNTP-Posting-Host: po9.andrew.cmu.edu X-Trace: bb3.andrew.cmu.edu 984806409 11689 128.2.10.109 (17 Mar 2001 05:20:09 GMT) X-Complaints-To: advisor AT andrew DOT cmu DOT edu NNTP-Posting-Date: 17 Mar 2001 05:20:09 GMT X-Added: With Flames (outnews v2.6) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com For me, the function sqrt() which obviously returns a square root is messing up for me on moderately large numbers. anything below 10,000 and it gives me about the right answer, but at like: range = sqrt(300,000) I get a 0 as a return value? I tried doing: int range; double range; float range; Nothing seemed to work. Anyone else ever have problems with sqrt? I'm prolly gonna check faqs and news groups for a few moments then rewrite the function if I get nothing. I'm not stuck, just mildly perplexed at the moment.