// Error at line 375 - equation is for cm to inches... should be: val *= 2.54