Hex number with 0x : hexadecimal numbers « Number « Ruby






Hex number with 0x


puts 0x100                          # => 256

 

Related examples in the same category

1.Convert string to hex
2.Convert string to integer (hex)