in reply to Re^2: Need to calculate IP address
in thread Need to calculate IP address

I think the example is wrong. What should a 0 become? Or a 9?

Replies are listed 'Best First'.
Re^4: Need to calculate IP address
by ddrew78 (Beadle) on Dec 28, 2017 at 20:01 UTC
    It will never be a 0. If the IP ends in .9, it needs to become .10. .10 would become .9. .29 would become .30, etc.