From: Markus Schoepflin <nospam@no.spam>
Subject: Re: Forcing exceptions on NANs with GNAT?
Date: Fri, 21 Nov 2008 10:33:27 +0100
Date: 2008-11-21T10:33:27+01:00 [thread overview]
Message-ID: <gg5v97$sdk$1@nntp.ilk.net> (raw)
In-Reply-To: <gg3ghl$koi$1@nntp.ilk.net>
Markus Schoepflin wrote:
> is it possible to influence the behaviour of GNAT regarding the handling
> of NANs? (Most importantly in the special case of division by zero.)
[...]
Thanks all for the answers.
The suggestion from Dmitry (create a subtype with the same range as float)
works fine for my purposes, GNAT then raises range check errors for both
division by zero and overflows.
Markus
prev parent reply other threads:[~2008-11-21 9:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-20 11:09 Forcing exceptions on NANs with GNAT? Markus Schoepflin
2008-11-20 13:35 ` Jean-Pierre Rosen
2008-11-20 13:46 ` Dmitry A. Kazakov
2008-11-21 19:55 ` sjw
2008-11-20 16:19 ` Adam Beneschan
2008-11-21 5:01 ` Jerry
2008-11-21 9:33 ` Markus Schoepflin [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox