Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl Monk, Perl Meditation
 
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 having an uproarious good time at the Monastery: (5)
As of 2014-04-20 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls