i have looked at all the ruby manual but i cant find no way of doing
this I am very new to ruby
so here is my problem
ok first here is my code

sum = "5:5:5"
sum = sum.split(":")
sum = sum.inject {|sum, x| sum + x }
puts sum

problem is that when you use split it splits the values into strings
what i need to know is how do i change all the values in the array sum
eg
"5","5","5"
to floating point numbers
i just cant work it out any help would be much appreciated

-- 
Posted via http://www.ruby-forum.com/.