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

Re: Force currency view

by pavunkumar (Scribe)
on Feb 08, 2011 at 05:44 UTC ( #886888=note: print w/ replies, xml ) Need Help??


in reply to Force currency view

 Try this one.....
# When $val has normal integer . $val=89.9 ; printf ( "%.2f", $val ) ;
Or.... # When $val has dollar sign .
$val='$89.9'; printf ('$'."%.2f",substr($val, 1,length($val))) ;


Comment on Re: Force currency view
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-08-23 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls