Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cm2ft($cm){
- $calc = $cm * 0.032808;
- $ft = round($calc);
- $inches = $calc - $ft;
- $inches = round($inches * 10);
- $ft_in = $ft."ft ".$inches."in";
- return $ft_in;
- }
- function kg2lbs($kg){
- $convert = $kg * 2.2046;
- $lbs = number_format((float)$convert, 3, '.', '');
- $lbs_converted = $lbs + "lbs";
- return $lbs_converted;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement