Results 1 to 4 of 4

Thread: Golang book weirdness

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

    Default 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. #2
    Join Date
    Apr 2003
    Posts
    13,279
    Rep Power
    35

    Default

    Beats me. But isn't the largest 8 digit binary number eight 1's? 11111111 = 255 base 10
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  3. #3
    Join Date
    Jan 2011
    Posts
    962
    Rep Power
    14

    Default

    @Carey
    Thanks for the link, its time I learn a full programming language. Go is going to be that language.
    1.8 Ghz Pentium 4 (OC'd.) / Intel P4 (478) Motherboard / 800MHz DDR / 256 Mb DDR RAM / 40GB Seagate / RIVA TNT2 Pro 32MB / 24X12X24 Sony CDRW+ / 18" View Sonic CRT / Windows ME Yes it will play Doom... i plan on trying Crysis 3 one of these days.

  4. #4
    Join Date
    Jul 2002
    Posts
    1,395
    Rep Power
    0

    Default

    Quote Originally Posted by Arch_Angel View Post
    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.

    Quote Originally Posted by gW33Zy View Post
    @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
  •