as_metric function

Convert a measured value to metric units