updated pipe ID calc

used float value to get math functions working right