[Pharo-project] digitAt: issue

Eliot Miranda eliot.miranda at gmail.com
Mon May 2 18:05:46 CEST 2011


digitAt: answers a byte in an integer and so is working as intended.

Eliot (phone)

On May 2, 2011, at 2:13 AM, Bernat Romagosa <tibabenfortlapalanca at gmail.com> wrote:

> Hi, try to run the following:
> 
> (2 raisedTo: 100000) digitAt: 1
> 
> The expected result (if I understood what digitAt: should return) is 9, but the message returns 0 instead. In fact, it returns 0 for any index.
> 
> Is this a bug or am I missunderstanding how digitAt: should work?
> 
> Cheers,
> 
> Bernat Romagosa.
> 
> p.s. My config is Pharo 1.2 with a 'Croquet Closure Cog VM [CoInterpreter VMMaker-oscog.51]' on Debian Lenny.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20110502/f8d73c45/attachment.htm>


More information about the Pharo-project mailing list