Iainuts friction factor formula is a bit tricky. I think foot and inch dimensions are mixed up. If cocnsistant units are used the term (12*e/ID) should be replaced by (e/ID) where e is the roughness hieght. This formula duplicates the Moody diagram beautifully.
A bit of algebra converts the...