Jump to content

Need help on my my php code. Need to convert Metric Conversion?


love19801

Recommended Posts

//calcualte the discount 

$pounds = $kilo * 0.453592 

// apply current formatting to the dollar and percent amounts 

$pounds_formatting = number_format($pounds, 2); 

 

//calcualte the discount 

$kilo = $pounds * 2.20462 

//apply current formatting to the dollar and percent amounts 

$k_ilograms_formatting = number_format($k_ilograms,2); 

 

this is my code its not working

Additional Details

1) gallons to liters(distance) 

2) pounds to kilograms(volume) 

3) pounds to kilograms(weight) 

4) Fahrenheit to Celsius(temp)

 

thank you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.