At least you can see where it came from:

1 * (0.1)^2 + 2 * (0.1)^1 + 3 * (0.1)^0 = .01 + .2 + 3

It sheds more light on the computations being used than anything else, but at least it's reasonable. In the sense that any integer base b is b%1, hence a rational, why not use other rationals?

As this Wikipedia article points out (http://en.wikipedia.org/wiki/Non-integer_representation), base 0.1 reverses the order of digits in a decimal number. With some decimal point effects too.

AHS

Message: 8
Date: Sun, 3 Jun 2007 11:31:04 -0600
From: "Don Guinn" <[EMAIL PROTECTED]>
Subject: Re: [Jprogramming] Re: A stunning (to me) revelation about J
(G. Canyon)
To: "Programming forum" <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed

How about?

  0.1b123
3.21


On 6/3/07, Arved Sandstrom <[EMAIL PROTECTED]> wrote:

It's probably not as remarkable as it sounds. :-) The most basic operation
-
that of doing _3b1202, or suchlike - will happen correctly even if the
implementor only ever thinks of positive bases.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to