Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Answer: How do I round a number?

by fundflow (Chaplain)
on Jul 26, 2000 at 00:22 UTC ( #24343=categorized answer: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     1.1 rounds to 1.0.
     1.5 rounds to 2.0.
    -1.1 rounds to 1.0.
    -1.5 rounds to 1.0.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-05-20 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?