string to currency format


Posted on 16th Feb 2014 07:03 pm by admin

Hi guys...

Actually I chunk out some data from txtfile and one of the data contains amount value but in string format like so..

Did you know?Explore Trending and Topic pages for more stories like this.
"000000010000" -->desire result 100.00
"000000002000" -->desire result 20.00
"000000100050" -->desire result 1000.50

so how's the hell I can format the string so the end result will be
100.00
20.00
1000.50

any help are appreciated.
No comments posted yet

Your Answer:

Login to answer
146 Like 44 Dislike
Previous forums Next forums
Other forums

gmmktime or mktime
I live in the UK, i am within the GMT (with daylight saving time ie 1 hour difrence between summer a

error with opendir
when i do this

if ($handle = opendir($dir)) {
while (false !== ($file = readdir($han

Quick fix: Conditional statement with an array
Hi, I'm getting the temperature value off of the Environment Canada website along with the icon file

Running a cron job through PHP/Apache?!
Hello all,
I have a PHP script which makes a cron file from user input. When i try to run the cro

Need help-Error istream header declaration
Hi Everyone ,

I am having issue with istream declaration. I am new to C programming.
can a

how to remove in php string display
My code is $message="We're looking at developing our website."; $body= "My mess

Multiple arrays inside data
Hi,

Simple question. I have a column called "array" in my database, and inserted in

duplicate record notification
In my database, after insertion of records, I want to know if the record inserted is duplicate or no

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

Parse String
I need to parse the string below into three variables. How would I do that?

john + 10/20/2008

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash