Displaying 1 result from an estimated 1 matches for "high_freq".
2006 Mar 18
2
basic operations in rails
...is must be such a beginner''s problem, but I can''t figure it out.
I''m pulling two integers out of a database, and i want to divide one
value with the other, but i keep getting an error about operating on
strings.
Here''s the code -
low_freq = unsorted.last.freq
high_freq = unsorted.first.freq
divider = high_freq / low_freq
In my view, if i display the contents of low_freq or high_freq there is
indeed an integer in there.
Can someone help a newb?
cheers
--
Posted via http://www.ruby-forum.com/.