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

php - multilevel menu with multilevel array -

c# - TypeConverter in propertygrid only converts from string, not to -

jQuery UI: Datepicker month format -