Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: Need some wisdom on strings to numbers

by swampyankee (Parson)
on Oct 09, 2009 at 21:17 UTC ( #800383=note: print w/replies, xml ) Need Help??

in reply to Re^2: Need some wisdom on strings to numbers
in thread Need some wisdom on strings to numbers

Personally, I would consider silently modifying data structures to be a bug. I realize there may be reasons for Data::Dumper treating floats as strings, mostly because Perl relies on the math library used by the C compiler used to build Perl's executable, and it may be distracting to see 123.1 show up as 123.09999… in Data::Dumper's output. The most obvious fix is to modify the documentation ("Data::Dumper outputs all floating point values as strings so that 123.1 doesn't appear as 123.0999…"). This has the obvious advantage of avoiding the need to change any code.

Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

  • Comment on Re^3: Need some wisdom on strings to numbers

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://800383]
[Corion]: Meh... Github (understandably) doesn't allow files larger than 100MB, but my rebase of an older repo (from Github) includes such a file and now I can't push my changes there
[Corion]: Maybe that is the push I need to finally try out Gitprep ;)
[Corion]: On the upside, I should finally improve Image::CCV to also do ImageNet classification using their pretrained parameters
[Lady_Aleena]: Hello Corion.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2017-09-24 18:05 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (274 votes). Check out past polls.