DEV Community

Discussion on: Daily Challenge #49 - Dollars and Cents

Collapse
 
webcoderph profile image
Maynard Cabalitan • Edited

Ruby

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