Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Strange log behavior?

by johngg (Abbot)
on Sep 07, 2013 at 17:36 UTC ( #1052830=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Strange log behavior?
in thread Strange log behavior?

sprintf seems to do the right thing.

perl -E ' say sprintf q{%.0f}, $_ for 2.99999, 2.49999, 3, -2.99999, -2.49999, 5279.8012;' 3 2 3 -3 -2 5280 $

I hope this is helpful.

Cheers,

JohnGG


Comment on Re^3: Strange log behavior?
Download Code
Re^4: Strange log behavior?
by Anonymous Monk on Sep 07, 2013 at 19:36 UTC
    Thanks, just what I needed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-08-23 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls