MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: List in base 16

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40172] Re: List in base 16
  • From: atelesforos at hotmail.com (Orestis Vantzos)
  • Date: Tue, 25 Mar 2003 03:02:30 -0500 (EST)
  • References: <b5mj8t$s0l$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

If you have the list digitList with the numbers (eg. using IntegerDigits[n,16]) then
digitList /. {10->A,11->B,12->C,13->D,14->E,15->F}
will do the job
Orestis

Steve Gray <stevebg at adelphia.net> wrote in message news:<b5mj8t$s0l$1 at smc.vnet.net>...
> BaseForm uses lower case letters and prints the subscript 16
> after each number. Is there a way to print a list whose elements are
> integers 0 through 15 using 0,1,...,9,A,B,C,D,E,F without the
> subscript 16? E.g. {8,13,11,3} should appear as {8,D,B,3}.
> 	Help will be appreciated. Thank you.


  • Prev by Date: Re: Plot a recurrence relation
  • Next by Date: Cell grouping rules
  • Previous by thread: Re: List in base 16
  • Next by thread: Re: List in base 16