How do you convert 10.00 to 1000?
Posted: Fri Jul 30, 2010 6:02 am
This may sound stupidly simple, but I cannot work it out.
I know you just times the figure by 100, but then I'd have 1000.00.
And I know how to 'printf' a value from that and set the 2 to 0, to show 1000.
But how to you CONVERT it to the 1000 rather than just echo it?
I know you just times the figure by 100, but then I'd have 1000.00.
And I know how to 'printf' a value from that and set the 2 to 0, to show 1000.
Code: Select all
printf ("£%.2f", $value);