comp.lang.ada
 help / color / mirror / Atom feed
From: "Kai Gläsner" <Kai.Glaesner@t-online.de>
Subject: Why raises this an error? :-(
Date: Sat, 16 Mar 2002 20:48:44 +0100
Date: 2002-03-16T20:48:44+01:00	[thread overview]
Message-ID: <3C93A19C.67D6E442@t-online.de> (raw)

Hello community,

while porting an c++ math-library to Ada95 (Gnat 3.12p under Linux) I
experienced:

This:

    Alt_D := (-8.0/4.0) ** 2.0;

raises this:

    raised ADA.NUMERICS.ARGUMENT_ERROR : a-ngelfu.adb:111 instantiated
at a-nuelfu.ads:20

This:

    Alt_D := -2.0 ** 2.0;

works fine!

Why? What have I overlooked here... :-/

Thanks in advance for an answer...

Kai Glaesner



             reply	other threads:[~2002-03-16 19:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-16 19:48 Kai Gläsner [this message]
2002-03-16 20:32 ` Why raises this an error? :-( Damien Carbonne
2002-03-17 16:31   ` Steve Doiel
2002-03-16 20:37 ` Jeffrey Carter
2002-03-16 22:01   ` Kai Gläsner
2002-03-17  5:39     ` Jeffrey Carter
2002-03-17  7:25       ` Hyman Rosen
2002-03-16 22:12 ` Kai Gläsner
2002-03-17  1:06   ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox