Message Boards Message Boards

0
|
4777 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to convert base 2 number to list of digits?

Posted 9 years ago
Attachments:
POSTED BY: Gary Lewis
2 Replies
Posted 9 years ago

My brain seizure is gone; what a relief. Thanks John!

POSTED BY: Gary Lewis
RealDigits[N[Sqrt[2] - 1, 6], 2]

yields

{{1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1}, -1}
POSTED BY: John Doty
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract