How it works
To turn a decimal inch into a fraction, multiply by the denominator (say 16), round to the nearest whole number for the numerator, then reduce the fraction by the greatest common divisor.
numerator = round(decimal × denominator)
fraction = numerator / denominator, then reduce
fraction = numerator / denominator, then reduce
Worked example
0.375 inches × 16 = 6, so 6/16, which reduces to 3/8" (9.525 mm).