1. Hardcore Techie
Join Date
Jul 2002
Posts
1,395
Rep Power
0

Golang book weirdness

In the exercise at http://www.golang-book.com/3, the hint says 101-1=9 and 102-1=99. What kind of sorcery is this? Is this an error?

2. Beats me. But isn't the largest 8 digit binary number eight 1's? 11111111 = 255 base 10

3. @Carey
Thanks for the link, its time I learn a full programming language. Go is going to be that language.

4. Hardcore Techie
Join Date
Jul 2002
Posts
1,395
Rep Power
0
Originally Posted by Arch_Angel
Beats me. But isn't the largest 8 digit binary number eight 1's? 11111111 = 255 base 10
You are correct. That is the highest 8 digit.

I may have guessed what was meant. I will email the writer to find out soon. It may be that he meant 10^1-1=9 and 10^2-1=99. Makes sense right?
The PDF document has the correct print.

Originally Posted by gW33Zy
@Carey
Thanks for the link, its time I learn a full programming language. Go is going to be that language.
Yaw == You are welcome
Last edited by Arch_Angel; Nov 9, 2013 at 10:05 PM. Reason: merged multiple posts

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•