This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Floating point problems with 68000 (no FPU)
- From: "Doug Broadwell" <dougb at value dot net>
- To: "Newlib Mail List" <newlib at sources dot redhat dot com>
- Date: Mon, 18 Nov 2002 12:53:53 -0800
- Subject: Floating point problems with 68000 (no FPU)
- Organization: DBA Associates
- Reply-to: "Doug Broadwell" <dougb at value dot net>
I just started using the newlib floating point library with the following
results:
sqrt(2) = 1.414213
sqrt(10) = 10.000002
sqrt(100) = 0.000000
sqrt(10000) = 0.000000
In one test sqrt(100)
= -7239...............................................................0,
some 160 character long number.
I'm using printf("%f", sqrt(n)) for these results.
Any suggestions on how to debug?
Thanks, Doug Broadwell