l2w function

Length-weight conversion