Re: 0.0 exponent fails
- From: nicolas cellier <ncellier@xxxxxxxxxxx>
- Date: Sun, 23 Mar 2008 16:44:22 +0100
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
.
- Follow-Ups:
- Re: 0.0 exponent fails
- From: Cesar Rabak
- Re: 0.0 exponent fails
- References:
- 0.0 exponent fails
- From: nice
- Re: 0.0 exponent fails
- From: Cesar Rabak
- 0.0 exponent fails
- Prev by Date: Re: 0.0 exponent fails
- Next by Date: Re: 0.0 exponent fails
- Previous by thread: Re: 0.0 exponent fails
- Next by thread: Re: 0.0 exponent fails
- Index(es):