'So my question remains: is there a purpose that a function base-n (xby) will 
accept "foreign" digits without complaining..?' asks Martin Kreuzer. 
This question and its generalizations pops up now and then. Lets turn it 
around: is there a purpose complaining rather than accepting a generalization? 

--- Den søn 10/5/09 skrev Martin Kreuzer <[email protected]>:

> Fra: Martin Kreuzer <[email protected]>
> Emne: [Jprogramming] Base Notation
> Til: [email protected]
> Dato: søndag 10. maj 2009 09.21
>  > While fumbling around with base
> notation, I found
>  >   5b34
>  > 19
>  >   5b35
>  > 20
>  >   5b36
>  > 21
>  > while I was waiting to see an error message for the
> second and third
>  > case (using digits not in the set for this base,
> beyond 0 1 2 3 4).
>  > This is puzzling me.
> 
> Seems consistent to me.
>    5b36
> There are 6 "ones" (5^0) and 3 "fives" (5^1), that makes
> 21.
> 
> Obviously you can get 21 using 5b41 too.
> 
> ---
> 
> Thanks, Ric & Devon...
> 
> Let's take another example to make myself  a bit more
> clear:
> 
>   2b1010
> 10
>   2b2020
> 20
>   2b3030
> 30
> 
> I'm ready to admit that I can plainly see how this result
> is 
> generated (as Ric pointed out); however I've never come
> across any 
> binary integer of the form 2020 or 3030. So my question
> remains: is 
> there a purpose that a function base-n (xby) will accept
> "foreign" 
> digits without complaining..?
> 
> 
> 
> 
> 
> 
> ---
> avast! Antivirus: Outbound message clean.
> Virus Database (VPS): 090509-0, 09.05.2009
> Tested on: 10.05.2009 07:21:15
> avast! - copyright (c) 1988-2009 ALWIL Software.
> http://www.avast.com
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


      Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på 
LCD TV! Se her http://dk.yahoo.com/r/pat/lcd
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to