Created
October 2, 2011 20:23
-
-
Save danhodge/1257879 to your computer and use it in GitHub Desktop.
Ruby Formatting Tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print a 32-bit integer as an 8 character hex string | |
"%08X" % 65535 # => "0000FFFF" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment