Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: int($x) gives strange result

by gone2015 (Deacon)
on Aug 24, 2009 at 15:16 UTC ( [id://790842]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print int($x*100 + 0.5)/100 ;
    
  2. or download this
    sub show {
     my ($y, $p) = @_ ;
    ...
    } ;
    
    show("1.15", 20) ;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-19 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found