Convert an IP address to a decimal number Language: Ruby #!/usr/bin/env ruby aip=ARGV[0].split(".") p 16777216*(aip[0].to_i) + 65536*(aip[1].to_i) + 256*(aip[2].to_i) + aip[3].to_i Reveal More Refactor Tweet Embed Raw Added almost 2 years ago by zh