Convert string to hex : hexadecimal numbers « Number « Ruby






Convert string to hex

'405'.hex                       # => 1029

 

Related examples in the same category

1.Hex number with 0x
2.Convert string to integer (hex)