Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: strange rounding

by Anonymous Monk
on Nov 29, 2004 at 12:39 UTC ( [id://410907]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       12400/10 => 1239.9 ??
    and
       12400*0.1 => 1239.9
    
  2. or download this
       s/(\d*)(\d\d)/$1.$2/
    or
       $price = substring(..).'.'.substr(..)
    
    (I asume that s/../../ is exactly doing this)
    

Log In?
Username:
Password:

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

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

    No recent polls found