This is a simple function generator; you can't use it on its own. It converts weight in pounds into British stone and pounds (e.g. 146 lb becomes 10 st. 7 lb.). Call this after you have defined the variable $weight in pounds. It will output x st. y lb.