search for: horizontal_bar_graph

Displaying 1 result from an estimated 1 matches for "horizontal_bar_graph".

2006 Jul 17
4
Division not working!?!??
I guess you could call this a noobie problem as well. I''m trying to divide two numbers by each other... For example: <% for element in project.elements %> Element: <%= horizontal_bar_graph [element.name, ((element.completed_hours / element.hours) * 100)] %><br /> <% end %> element.completed_hours == 2 element.hours == 5 (2 / 5) * 100 == 40 However, it returns a total sum of 0. This is incorrect, of course. Why does it do that? I tried it with magic numbers inst...