DEV Community

Discussion on: Daily Challenge #49 - Dollars and Cents

Collapse
webcoderph profile image
Maynard Cabalitan • Edited on

Ruby

def maney(amount)
  "$" + '%.2f' % amount.to_f
end