Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function KtoLbs(pK) {
- var nearExact = pK/0.45359237;
- var lbs = Math.floor(nearExact);
- var oz = (nearExact - lbs) * 16;
- return {
- pounds: lbs,
- ounces: oz
- };
- }
- var imperial = KtoLbs(10);
- alert("10 kg = " + imperial.pounds + " lbs and " + imperial.ounces + " oz.");
- function kgToPounds(value) {
- return value * ?conversionValue?;
- }
- function poundsToOunces(value) {
- return value * 16;
- }
- function KtoLbs(pK) {
- nearExact = pK/0.45359237;
- lbs = Math.floor(nearExact);
- oz = (nearExact - lbs) * 16;
- }
- /* sigh */
Add Comment
Please, Sign In to add comment