title: Python ~ Getting first few numbers from left to right
body: <p>I am currently writing a programme with two variables in random and need to be calculated in an equation and want to fetch first three numbers and converting it to a percentage, the following is what I want the programme to reply</p>
  
  <pre><code>formular = (((((3*m-2*h)*g*c*b)/3*m)*o)/lvl)/100
  print formular
  #g and lvl are the random variables
  </code></pre>
  
  <p>the following is what I want it to output from the formular.</p>
  
  <pre><code>6920.157 to 69.2
  3561.356 to 35.6
  182435.24 to 18.2
  </code></pre>
  
  <p>Is there an inbuild function which allows that or what can I do?
  Thank you for reading this and understanding my bad English (sorry for that)</p>