replace some insane maths with math that makes sense
This commit is contained in:
parent
eb3a895bcf
commit
2f44c8984d
1 changed files with 1 additions and 1 deletions
|
@ -9,6 +9,6 @@ for e in range(3, -1, -1):
|
||||||
multiplier = 256 ** e
|
multiplier = 256 ** e
|
||||||
octet = num // multiplier
|
octet = num // multiplier
|
||||||
addr.append(str(octet))
|
addr.append(str(octet))
|
||||||
num -= octet * multiplier
|
num = num % multiplier
|
||||||
|
|
||||||
print('.'.join(addr))
|
print('.'.join(addr))
|
||||||
|
|
Loading…
Reference in a new issue