Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
Created October 6, 2013 01:41
Show Gist options
  • Save fijimunkii/6848289 to your computer and use it in GitHub Desktop.
Save fijimunkii/6848289 to your computer and use it in GitHub Desktop.
ruby: puts format money (print float with $ preceeding it)
f = 10.5; p "$%.1f" % f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment