From owner-freebsd-questions Wed Oct 4 7:20:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.chat.ru (mail1.chat.ru [212.24.32.14]) by hub.freebsd.org (Postfix) with ESMTP id 3D07E37B503 for ; Wed, 4 Oct 2000 07:20:21 -0700 (PDT) Received: from gnu.chat.ru ([212.24.32.10] helo=mail.chat.ru) by mail1.chat.ru with esmtp (Exim 3.15 #1) id 13gpOU-0008eY-00 for freebsd-questions@freebsd.org; Wed, 04 Oct 2000 18:19:38 +0400 Received: from p27.gw.lvl.ru ([194.67.189.27] helo=chat.ru) by mail.chat.ru with asmtp (Exim 3.16 #1) id 13gpP7-00004M-00 for freebsd-questions@freebsd.org; Wed, 04 Oct 2000 18:20:17 +0400 Message-ID: <39DB3EBF.CC697AE5@chat.ru> Date: Wed, 04 Oct 2000 18:29:19 +0400 From: jadream X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Am I crazy ot libc is not working? (atof()) Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Authorized: jadream Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I'm at the point of boiling after 10 hours trying to understand why under FreeBSD 3.2 at x86 generic machine in C-file compiled with default gcc without any specific clues standard lib function atof() is malfunctioning. double res; res = atof("266738911.0"); res can be zero or someting less then zero or some "magic" value like 10011000.000000. Just can't get what's wrong? can't believe in such a stupid bug in libc. Maybe something more complicated? Any ideas are welcome. Don't blame me if it's an obvious thing - may be I really need some medicine :0) Alex Komratov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message