Georg Ledermann
Developer · Not a member
Georg Ledermann's latest activity
Thursday, January 15 2009
1763
number_to_human_size fails for some values
was updated
in Ruby on Rails
-
- Tag changed from 2.2.2, helper, numberhelper, number_to_human_size to 2.2.2, helper, numberhelper, number_to_human_size, patch
Here it's little patch to fix the bug (with tests added). It's a kind of a hack, perhaps someone can find a better way to fix this.
-
Georg Ledermann created the ticket at 6:04 PMFor some values, the helper method "number_to_human_size" gives a wrong result. See this examples:
Correct:
number_to_human_size(41500, :precision => 0) => "41...