I think the example is wrong. What should a 0 become? Or a 9?
In reply to Re^3: Need to calculate IP address by tybalt89 in thread Need to calculate IP address by ddrew78