Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2017-08-21 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (325 votes). Check out past polls.

    Notices?