Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 ]

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 questions are moot...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2018-05-23 16:02 GMT
Find Nodes?
    Voting Booth?