Ruby on Rails - Rounding ones, tens and hundred digit places -


I want the round of people and ten points of Poiton for the value ..

If it is 1999, it should be shown as 1900

and if it is 19999 then it should show as 19000

{code_name}

{ All_cost.to_money.format (: no_cents)}

You can round like this:


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -