One for the Code Monkeys here.... One for the Code Monkeys here....
Posts 1 to 9 of 9
  1. #1

    TykeLike

    SimonMac is always on top

    SimonMac's Avatar
    Join Date
    Aug 2010
    Location
    God's Own Republic Of Yorkshire
    Posts
    24,158
    “Live a good life. If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by. If there are gods, but unjust, then you should not want to worship them. If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones.”

    ― Marcus Aurelius

  2. #2

    My post count is Majestic

    NickFitz has reached the peak. Play again?

    NickFitz's Avatar
    Join Date
    Jun 2007
    Location
    Your local branch
    Posts
    50,617

    Default

    “Do the simplest thing that could possibly work”

  3. #3

    Still gathering requirements...

    Freewill is too good to be a permie


    Join Date
    Feb 2018
    Posts
    26

    Default

    Code:
    # TODO: Make it work for all floating point numbers too

  4. #4

    Super poster

    vwdan - scorchio!


    Join Date
    Dec 2013
    Location
    Midlands
    Posts
    3,194

    Default

    He should have emulated a processor first, then wrote it in assembly.

  5. #5

    My post count is Majestic

    MarillionFan is a fount of knowledge

    MarillionFan's Avatar
    Join Date
    Jul 2005
    Location
    .
    Posts
    35,987

    Default


    Why on earth would you out NickFitz by publishing his best EVER code!!! Shameless.
    What happens in General, stays in General.
    You know what they say about assumptions!

  6. #6

    Respect my authoritah!

    NotAllThere is always on top

    NotAllThere's Avatar
    Join Date
    Aug 2007
    Location
    Far away from HMRC
    Posts
    23,519

    Default

    Looks like it was created using TDD. It passes all the tests!
    Down with racism. Long live miscegenation!

  7. #7

    Godlike

    Zigenare is a fount of knowledge

    Zigenare's Avatar
    Join Date
    Apr 2018
    Posts
    6,124

    Default

    Quote Originally Posted by NotAllThere View Post
    Looks like it was created using TDD. It passes all the tests!
    It just needs refactoring.
    Old Greg - In search of acceptance since Mar 2007. Hoping each leap will be his last.

  8. #8

    Contractor Among Contractors

    GJABS - scorchio!

    GJABS's Avatar
    Join Date
    Sep 2015
    Posts
    1,188

    Default

    It's missing a suitable expletive if you do a divide by zero

  9. #9

    I Am Legend

    BrilloPad has reached the peak. Play again?


    Join Date
    Aug 2006
    Posts
    108,497

    Default

    I can't work out what 51*1 is. I tried to use this program but it did not work. Can anyone help?

Posting Permissions

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