Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re^4: The Definitive Unit Conversion Script

by BrowserUk (Patriarch)
on Dec 13, 2002 at 21:11 UTC ( [id://219752]=note: print w/replies, xml ) Need Help??


in reply to Re^4: The Definitive Unit Conversion Script
in thread The Definitive Unit Conversion Script

You don't have to specify the units on input. If you supply a number (or array of numbers), then they just get converted to numbers.

The idea was that of you were reading stuff from another source with the units specified, then the direction of the conversion would be determined for you. Just a thought.

Also, if you don't specify the units at declaration time, units are not even looked for. If they are supplied at runtime, its just results in a runtime "non-numeric" error. I'll look at your code now ;^).


Examine what is said, not who speaks.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-03-29 06:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found