[Newbies] Re: Shouldn't 7r6.5 be the same as 7r65 * 0.1

Ken Causey ken at kencausey.com
Mon Jul 3 18:51:00 UTC 2006

On Mon, 2006-07-03 at 20:30 +0200, Klaus D. Witzel wrote:
> Would some good soul please explain what
> 	Number readFrom: '7r6.5'
> should return. It is apparently not the same as 7r65 * 0.1 and before I  
> dig deeper (why does this happen, is it a bug or feature) I'd appreciate  
> that someone confirms or rejects (bug | feature).
> Thank you.
> /Klaus

Because in the expression

7r65 * 0.1

the first value is in base 7 whereas the second is in base 10

7r65 * 7r0.1 IS the same valus as 7r6.5.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20060703/2231304f/attachment-0001.pgp

More information about the Beginners mailing list