It means  9*(2^1)+9*(2^0)  just like  2b11 means  1*(2^1)+1*(2^0)  .

J radix constants can have digits larger than the radix.  The DoJ addresses 
this by not explicitly prohibiting it (the DoJ is very efficient :).

In short, the rule for  RbDDD  where R is the radix and DDDD the digits is  
'0123456789abcde....z' i.   'DDDD'  , independent of  R  .

Try  16bg  or  10bzzzzz  or  1bthomascostigliola  .

BTW,  16b_whatever  also works.

-Dan






Please excuse typos; composed on a handheld device.

-----Original Message-----
From: Thomas Costigliola <[email protected]>
Sender: [email protected]
Date: Thu, 30 Sep 2010 19:30:34 
To: Programming forum<[email protected]>
Reply-To: Programming forum <[email protected]>
Subject: Re: [Jprogramming] Paid programming contest: Parse J constants

What is the meaning of, e.g., 2b99 -: 27? I did find any mention of it
in the dictionary.

On 9/30/10, Dan Bron <[email protected]> wrote:
> Btw, $1 extra credit to Raul for finding a bug in the rules, and
> congratulations for being the first on the board.
>
> -Dan
>
> PS: Please, indicate when you think you've earned extra credit - I may miss
> it otherwise, and JSoftware won't get its due.
>
>
>
>
> Please excuse typos; composed on a handheld device.
>
> -----Original Message-----
> From: "Dan Bron" <[email protected]>
> Sender: [email protected]
> Date: Thu, 30 Sep 2010 22:25:20
> To: J Programming<[email protected]>
> Reply-To: Programming forum <[email protected]>
> Subject: Re: [Jprogramming] Paid programming contest: Parse J constants
>
> Rule 3 covers_ and__ .
>
> I had not considered_.  .  Until we come up with a better idea, you may
> represent it as itself.
>
> -Dan
>
>
>
>
> Please excuse typos; composed on a handheld device.
>
> -----Original Message-----
> From: Raul Miller <[email protected]>
> Sender: [email protected]
> Date: Thu, 30 Sep 2010 17:47:36
> To: Programming forum<[email protected]>
> Reply-To: Programming forum <[email protected]>
> Subject: Re: [Jprogramming] Paid programming contest: Parse J constants
>
> On Thu, Sep 30, 2010 at 3:55 PM, Dan Bron <[email protected]> wrote:
>> The hurdle occurred to me.  And I came up with some ideas, but I did
>> not want to be too prescriptive; I am hoping to leverage the community's
>> creativity.  I envisioned an iterative process to resolve such issues.
>> (What fun is a competition with no action?)
>
> How about the numbers_,__ and_. ?
>
> I will note that the only reliable way to get_. is to
> use it directly -- all bets are off if you try to use
> computation to get it.
>
> And it seems, to me, that if you allow_. to represent
> itself, that_ and__ would be naturally processed in
> the same fashion?
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to