Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2000 07:34:17 +1100
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        Nobuhiro Yasutomi <nobu@rd.isac.co.jp>
Cc:        gnats-admin@FreeBSD.ORG, freebsd-alpha@FreeBSD.ORG
Subject:   Re: alpha/17032: strtod(3) floating exception
Message-ID:  <00Mar7.073417est.115205@border.alcanet.com.au>
In-Reply-To: <20000306154855R.nobu@rd.isac.co.jp>; from nobu@rd.isac.co.jp on Mon, Mar 06, 2000 at 05:49:54PM %2B1100
References:  <ybshfel4c0q.wl@ett.sat.t.u-tokyo.ac.jp> <20000306154855R.nobu@rd.isac.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2000-Mar-06 17:49:54 +1100, Nobuhiro Yasutomi <nobu@rd.isac.co.jp> wrote:
>  By the way, I found other case to make `Floating point exception'
>the value is "10e-323". This case happen with `-mieee' option.
>When without `-mieee', strtod retrun value to 0. But FreeBSD i386's 
>strtod make 9.88131e-323. Which is collect behavier?

Unlike the i386, the Alpha doesn't support denormalised numbers (eg
doubles less than ~2.225e-308) in hardware.  By default they truncate
to zero.  Correct IEEE behaviour relies on a combination of compiler
(the -mieee flag) and kernel support.

As for 10e-323, that number cannot be represented as a double (for
denormalised numbers, only integer multiples of ~4.940656e-324 can be
represented).  The closest representable value is 9.88131e-323 - which
is what the i386 reported.

Peter


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00Mar7.073417est.115205>