Converting from metric to imperial and vice versa using
bc.
Here are a few examples in the form of functions:
# -------------------------------------------------------------------------- #
# - Imperial to metric
# -------------------------------------------------------------------------- #
PHP Code:
# Function : lbToKg
# Syntax : lbToKg <pounds>
#
# Convert pounds to kilogram
function lbToKg() {
...