note 11693 deleted from ref.math by victor
| From: | victor@php.net | Date: | Sat, 22 Feb 2003 15:44:42 +0000 |
| Subject: | note 11693 deleted from ref.math by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-44345@lists.php.net to get a copy of this message | ||
Here is a pretty easy way to convert someone's weight in pounds to the English stones and
pounds:
$WeightStones = floor($weight/14);
$WeightPounds = ($weight%14);
echo $WeightStones."st ".$WeightPounds."lbs (".$weight."lbs)";
If the person weighs 136lbs, "9st 10lbs" will be returned.
Hope this helps someone...