Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Floats with trailing zeros as a hash key

by kilinrax (Deacon)
on May 09, 2003 at 15:05 UTC ( [id://256898]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Floats with trailing zeros as a hash key
in thread Floats with trailing zeros as a hash key

Then use sprintf? The internal representation of numbers shouldn't really matter - you can always convert them to the right format if needs be.

If it is important, then initialise them all as strings for consistency, at least.

  • Comment on Re: Re: Re: Floats with trailing zeros as a hash key

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found