defmoney_value(money)money_str=money.tr("$","").tr(" ","")# This is to remove trailing zerosifmoney_str.to_f==money_str.to_ireturnmoney_str.to_iendreturnmoney_str.to_fend
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ruby