Weight Conversion

Weight Conversion

For
From
Twitter
Status
Updating
Formulas
Share

kg

if(prop("Unit") == "kg", prop("Amount"), if(prop("Unit") == "st", round(prop("Amount") * 6.35 * 1000) / 1000, if(prop("Unit") == "lb", round(prop("Amount") / 2.205 * 1000) / 1000, if(prop("Unit") == "oz", round(prop("Amount") / 35.274 * 1000) / 1000, 0))))

st

if(prop("Unit") == "kg", round(prop("Amount") / 6.35 * 1000) / 1000, if(prop("Unit") == "st", prop("Amount"), if(prop("Unit") == "lb", round(prop("Amount") / 14 * 1000) / 1000, if(prop("Unit") == "oz", round(prop("Amount") / 224 * 1000) / 1000, 0))))

lb

if(prop("Unit") == "kg", round(prop("Amount") * 2.205 * 1000) / 1000, if(prop("Unit") == "st", round(prop("Amount") * 14 * 1000) / 1000, if(prop("Unit") == "lb", prop("Amount"), if(prop("Unit") == "oz", round(prop("Amount") / 16 * 1000) / 1000, 0))))

oz

if(prop("Unit") == "kg", round(prop("Amount") * 35.274 * 1000) / 1000, if(prop("Unit") == "st", round(prop("Amount") * 224 * 1000) / 1000, if(prop("Unit") == "lb", round(prop("Amount") * 16 * 1000) / 1000, if(prop("Unit") == "oz", prop("Amount"), 0))))

Full lb

if(prop("Unit") == "kg", floor(prop("Amount") * 2.205), toNumber(""))

Remaining oz

if(prop("Unit") == "kg", floor(prop("Amount") * 2.205 * 10 / 10 % 1 * 16), toNumber(""))

lb + oz

if(prop("Unit") == "kg", format(floor(prop("Amount") * 2.205)) + "lb " + format(floor(prop("Amount") * 2.205 * 10 / 10 % 1 * 16)) + "oz", "")
 
By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!
By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!