Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Multiplication problem

by Roy Johnson (Monsignor)
on Dec 10, 2007 at 17:00 UTC ( [id://656176]=note: print w/replies, xml ) Need Help??


in reply to Multiplication problem

I think that, for your relatively simple, low-precision use, you would get what you want with
sub round { sprintf "%.02f", @_ }

Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found