Thanks Eklunja,
Your help was much appreciated, I had missed the conversion of the real value back to a length, your solution solved the homogeneous units issue, however, it did result in another rather strange fault. The process of converting the equation to a real value changed the lengths...