Login  Register

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

Posted by Ken Causey-3 on Jul 03, 2006; 7:51pm
URL: https://forum.world.st/Shouldn-t-7r6-5-be-the-same-as-7r65-0-1-tp51969p51973.html

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



signature.asc (196 bytes) Download Attachment