var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Add Decimal Point
I have the following types of numbers 10000 or 150 and I need PHP to take that and add a . before the last 2 so the above would become.
100.00 and 1.50
something like that should do it.
Perfect, Thanks very much for your help!
str_pad($number, 2, "0", STR_PAD_RIGHT)
This isn't correct. It's simply padding a string with zeros and not taking into account the fact you're working with numbers and not strings.
Originally Posted by nimonogi
By sTag-Dan in forum Web Hosting Lounge
Last Post: 02-13-2008, 12:24 PM
By MGCJerry in forum Programming Discussion
Last Post: 02-06-2004, 02:14 PM
By vito in forum Hosting Software and Control Panels
Last Post: 02-08-2003, 04:34 PM
By Icheb in forum Programming Discussion
Last Post: 10-15-2002, 06:02 PM
By Mr_Predator in forum Programming Discussion
Last Post: 09-28-2002, 11:33 PM