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

Re: Dividing and format

by davido (Cardinal)
on Nov 27, 2003 at 17:42 UTC ( [id://310565]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $num = 12000/1000;
    my $string = sprintf "%.01f", $num;
    print $string, "\n";
    
  2. or download this
    use strict;
    use warnings;
    ...
        close STROUT or die "trying: $!\n";
        return $string;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found