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

Re^3: Print while filtering ouput...

by Lawliet (Curate)
on Feb 26, 2009 at 04:03 UTC ( #746446=note: print w/replies, xml ) Need Help??


in reply to Re^2: Print while filtering ouput...
in thread Print while filtering ouput...

Wow, I may have to start helping more people if this is the response I get! Thank you for the laud (is 'laud' use correctly there?) but I must say that ikegami's reply humbles even the great Lawliet. A one-liner that can replace your whole program!

Of course, one could say that I realized your lack of expertise in the matter and suggested a solution that you can grasp and therefore learn; expanding your knowledge of Perl and enabling you to teach others. In that case, you would be completely correct in thanking me and citing me in your program. :)

Also, note that it was I who bravely /msg'd ikegami to inform him of his lack-of-negation in his original node.

And now back to my normal, un-self-centered life. I am not that egotistical in real life, by the way. I really have no reason to be :P

And you didn't even know bears could type.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://746446]
help
Chatterbox?
[pryrt]: 1nickt, sprintf "%.16e", $v will always give enough precision to see 1 ULP (the smallest fractional part) of a standard 64bit Perl NV*
[pryrt]: (*: for systems where $Config{nvsize}==8 )
[pryrt]: Thus, that's "enough precision" to tell the difference between 1.0 and 1.0+1ULP
[pryrt]: But in what circumstance does your problem arise? When, in Perl, does the integer 1 not work identically to the floating-point NV 1.0000000000000000 e0?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (16)
As of 2017-05-24 19:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?