D
daniel
Hi,
I would like to extract an array of e.g. integers or floats from a
string:
s = "1234" -> [12,34]
s = "12.413.423.7" -> [12.4,13.4,23.7]
How can I use unpack for that? What format string do I need for the
two examples above?
Where can I find more examples of the unpack method, than in the ruby-
doc.org?
Thanks for your help
Daniel
I would like to extract an array of e.g. integers or floats from a
string:
s = "1234" -> [12,34]
s = "12.413.423.7" -> [12.4,13.4,23.7]
How can I use unpack for that? What format string do I need for the
two examples above?
Where can I find more examples of the unpack method, than in the ruby-
doc.org?
Thanks for your help
Daniel