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

Edited by ignace
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.