Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Constants you cannot help but remember

by halley (Prior)
on Jun 08, 2004 at 17:28 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-18 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found