Sha256: cfa21e822cd413aa72e9d99fc51407811ca9942bd9cf2f4be19296c68659211a

Contents?: true

Size: 122 Bytes

Versions: 13

Compression:

Stored size: 122 Bytes

Contents

Format an Integer as binary:

    "0x%x" % 65535
    # => "0xffff"

Or even simpler:

    65535.to_s(16)
    # => "ffff"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ronin-2.1.0 data/tips/ruby/integer_hex_format.txt
ronin-2.1.0.rc1 data/tips/ruby/integer_hex_format.txt
ronin-2.0.5 data/tips/ruby/integer_hex_format.txt
ronin-2.0.4 data/tips/ruby/integer_hex_format.txt
ronin-2.0.3 data/tips/ruby/integer_hex_format.txt
ronin-2.0.2 data/tips/ruby/integer_hex_format.txt
ronin-2.0.1 data/tips/ruby/integer_hex_format.txt
ronin-2.0.0 data/tips/ruby/integer_hex_format.txt
ronin-2.0.0.beta5 data/tips/ruby/integer_hex_format.txt
ronin-2.0.0.beta4 data/tips/ruby/integer_hex_format.txt
ronin-2.0.0.beta3 data/tips/ruby/integer_hex_format.txt
ronin-2.0.0.beta2 data/tips/ruby/integer_hex_format.txt
ronin-2.0.0.beta1 data/tips/ruby/integer_hex_format.txt