Ok so for school we needed to make a program that you put in the IP Address, hit a button and it outputs the IP Mask Integer. Here is my equation for that:
What I need to do is reverse this equation, so I can input the IP Mask Integer and get the IP Address.
Code:
dblBoxMask = dblBox0 * 256 ^ 3 + dblBox1 * 256 ^ 2 + dblBox2 * 256 + dblBox3What I need to do is reverse this equation, so I can input the IP Mask Integer and get the IP Address.