Group Abstract Group Abstract

Message Boards Message Boards

1
|
11.9K Views
|
2 Replies
|
4 Total Likes
View groups...
Share
Share this post:

The function (??) base^^

Posted 10 years ago
POSTED BY: Roger Backhus
2 Replies

^^ isn't a function. It's a syntax. Just as 2. means "the numeric version of 2" and not the integer, 16^^ab means "the number 171". This is handled by the parser, not the interpreter which is why FullForm[Hold[16^^A]] is Hold[10]. Howver, and as was said before, FromDigits is likely what you want.

POSTED BY: Jeremy Michelson
Posted 10 years ago

Hi,

The only function I know about that does what you are looking for is FromDigits. For example

Map[FromDigits[#, 16] &, {"a", "b", "d", "f", "1A2C"}]

I do not know why the function ^^ does not work in your Map example. I would be also interested in reading the reason.

POSTED BY: Xavier Roy
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard