• (cs) in reply to

    alphonsebrown:
    While I can see the reason behind the Pi and Deg2Rad/Rad2Dec (I
    always confuse them myself) definitions, why on earth should one
    want to have a constant for OneThird?


    You never know when the value of one third will change in the future...

    I agree it can change - "the number theory" is not a constant in my opinion also Katja seems very nice and those 186/61 are just the perfect measures and if she keeps it constant - I'll marry her =)))

  • ... (unregistered) in reply to
    Anonymous:
    While I can see the reason behind the Pi and Deg2Rad/Rad2Dec (I
    always confuse them myself) definitions, why on earth should one
    want to have a constant for OneThird?


    You never know when the value of one third will change in the future...

    Sigh. It has been pointed out already that x/3 is far slower than x*oneThird. This is basic optimisation folks, if you divide by a constant a lot then you should get its inverse once and then multiply by that. Of course that doesn't excuse the horrible names and pintless calculations when you are writing the value in the comment anyway.
  • (cs) in reply to
    Anonymous:

    *snip*

    Oh yeah, being an American I have no idea what 186CM or 61KG equates to. We're on the dewey decimal system over here.



    Man, that was funny! LOL
  • Maarx (unregistered)

    I can explain every single one of those constants in three words.

    Tab Auto Complete.

  • Melinda Gordon (unregistered)

    While I can see the spirit of the code...I think the ghost whisper is calling you to cross over...

  • Cousj001 (unregistered) in reply to Melinda Gordon

    I'll admit to haven written code much like this. While my name perhaps made a little more sense (similar to

    double InchesToCentimetres = 1/2.54; 
    ) I do have a large file of constants like this. However, it is just a library, in perhaps a more traditional sense - I 'borrow' code from it that I actually need into programs that need it, and have it in their files, or at least a library just to go with that application that includes the necessary ones, since I can't see any programs that will be requiring the Euler-Mascheroni constant any time soon. At least if I do have to put in something, I won't have to look it up again.

Leave a comment on “One2Pt20462262185th”

Log In or post as a guest

Replying to comment #:

« Return to Article