title: Convert a string into an array or list of floats
body: <p>I have a string of fourteen values seperated by #</p>
  
  <p>0.1#5.338747#0.0#.... and so on</p>
  
  <p>I want to convert each value from a string to a float or double to 3 decimal places.  I can do most of this the long way...</p>
  
  <pre><code>str = "0.1#0.2#0.3#0.4";
  String[] results;
  results = str.split("#");
  float res1 = new Float(results[0]);
  </code></pre>
  
  <p>but I'm not sure of the best way to get each float to 3 decimal places.  I'd also prefer to do this in something neat like a for loop, but can't figure it out.</p>