Frederick C. wrote:
On 27 Aug 2008, at 07:28, Remco S. wrote:
Is there a function in ruby/rails to realize that?
what do want more than just doing that calculation ? The
number_to_percentage helper will format it nicely if that’s what you
want.
Fred
Hi,
i have 2 array’s
t.set_data([46,28,33,48,54,49,34,40,36,43,56,55,57,49,38,35,36,62,44,59,40,55,27,37,47,56])
v.set_data([2442,1754,2887,3378,2937,2595,2871,2508,1874,
2699,3203,3044,3034,2558,3565,2299,2917,3686,3167,2824,3308,2731,2034,2888,3526,
3434])
The calculation that i want to perform is
t.set_data/v.setdata * 100 = percentage
remco