Write
a review

Converting a 32-bit integer into IP


Converting a 32-bit integer into IP






Number to convert: 3265917058

Binary representation

11000010 10101001 11110000 10000010 - 3265917058
00000000 00000000 00000000 11000010 - 3265917058 >> 24 ( 194 )

11000010 10101001 11110000 10000010 - 3265917058
10101001 11110000 10000010 00000000 - 3265917058 << 8
00000000 00000000 00000000 10101001 - (3265917058 << 8 ) >> 24 ( 169 )

11000010 10101001 11110000 10000010 - 3265917058
11110000 10000010 00000000 00000000 - 3265917058 << 16
00000000 00000000 00000000 11110000 - (3265917058 << 16) >> 24 ( 240 )

11000010 10101001 11110000 10000010 - 3265917058
10000010 00000000 00000000 00000000 - 3265917058 << 24
00000000 00000000 00000000 10000010 - (3265917058 << 24) >> 24 ( 130 )


Command use for conversion
$ echo 3265917058 | perl -ne 'print $_>>24 ,".",$_<<8>>24,".",$_<<16>>24,".",$_<<24>>24,"\n"'
194.169.240.130

A lire aussi

Published by netty5 - Last update on November 19, 2008 06:30 AM by netty5
  1 2 3 4  

User's advices

Add comment
Add comment
See also