Shouldn't 7r6.5 be the same as 7r65 * 0.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Shouldn't 7r6.5 be the same as 7r65 * 0.1

Klaus D. Witzel
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

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

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

Ken Causey-3
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.

Ken

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Klaus D. Witzel
Hi Ken,

on Mon, 03 Jul 2006 20:51:00 +0200, you wrote:

> 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.

Ah! This equation cut my knot, thank you Ken.

/Klaus

> Ken


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners