Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Equation Help Please!

$
0
0
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:
Code:

dblBoxMask = dblBox0 * 256 ^ 3 + dblBox1 * 256 ^ 2 + dblBox2 * 256 + dblBox3

What I need to do is reverse this equation, so I can input the IP Mask Integer and get the IP Address.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>