Re: 0.0 exponent fails



Cesar Rabak a écrit :
nice escreveu:

VisualWorks 7.5: 0.0 exponent. -> 0
Squeak 3.10: 0.0 exponent. -> -1 (?)
Dolphin 6.0: 0.0 exponent. -> ZeroDivide...

I just don't understand the exact nature of the report of yours. . .

What were you expecting on calling exponent for zero as argument?

I want to use it in order to decompose a Float into:
mantissa * (2 raisedTo: exponent)

Since i were porting from other dialects, this simply surpised me.

But when i think of it, i do not how how to define it.
Exception is an elegant way to tell this is not really well defined.
If this is a feature, I can deal with it.

I just wanted to be sure that is was a deliberate intention, not an accidental feature, because this makes one more difference between dialects in a rather core library (always annoying when porting).

cheers

Nicolas
.