2 Sep
2003
2 Sep
'03
12:37 p.m.
Le Mardi 2 Septembre 2003 11:27, Emil Jerabek a écrit :
On Sun, Aug 31, 2003 at 06:49:43AM +0200, Frank Heckenbach wrote:
I've uploaded a new alpha to <http://www.gnu-pascal.de/alpha/>.
[...]
* `pow' and `**' are EP conformant now (in particular `x pow y = (1 div x) pow (y)' if `y' is negative and `x <> 0') (fjf908.pas)
According to the standard, `x pow y' and `x ** y' should be an error if x = 0 and y <= 0 (in fact, there is no sensible value to return in these cases). This (mostly) worked in the old implementation, but it doesn't any more.
when possible, returning NAN (Not A Number in IEEE arithmetic) instead of an error is a sensible option -- Jean-Pierre Vial