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
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
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@lists.squeakfoundation.org