Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Constants you cannot help but remember

by halley (Prior)
on Jun 08, 2004 at 17:28 UTC ( #362448=note: print w/ replies, xml ) Need Help??

in reply to Constants you cannot help but remember

e ^ (i * pi) + 1 = 0

There really are only three numbers of interest in computer programming, though: ZERO, ONE and N. If you need to support two of something, you really should refactor to support any arbitrary number instead.

Oh, and the 72 points per inch thing is an abomination spawned by Adobe, Inc. to simplify their PostScript programming language. The traditional value is 72.27 points per inch. It's kinda sad that the Google calculator prefers Adobe's version of the number, but at least it refers to them as "PostScript points".

[ e d @ h a l l e y . c c ]

Comment on Re: Constants you cannot help but remember
Download Code
Replies are listed 'Best First'.
Re^2: Constants you cannot help but remember
by PhilHibbs (Hermit) on Jun 10, 2004 at 17:09 UTC
    I maintain that there are only three numbers: 0, 1, and infinity; and I'm not entirely convinced about the 1.

    This applies to mathematics in general, not just programming, but it is especially pertinent to programming.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://362448]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-11-28 12:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls