Results 1 to 4 of 4

Thread: Golang book weirdness

  1. #1
    Join Date
    Jul 2002
    Posts
    1,388
    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?
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

  2. #2
    Join Date
    Apr 2003
    Posts
    13,159
    Rep Power
    29

    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 2009

  3. #3
    Join Date
    Jan 2011
    Posts
    949
    Rep Power
    8

    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,388
    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 09:05 PM. Reason: merged multiple posts
    Sharing is caring? Then what if I care too much? A precarious situation, indeed...
    http://ip-check.org/ip-check.png

Posting Permissions

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