Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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))) ;

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 lurking in the Monastery: (10)
As of 2016-08-30 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (419 votes). Check out past polls.