You are viewing a single comment's thread. Return to all comments →
def serial_average(n) "#{n[0, 3]}-#{((n[4, 5].to_f + n[10, 5].to_f) / 2).round(2)}" end
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby - Strings - Indexing
You are viewing a single comment's thread. Return to all comments →