title: need a function for determing the scale of a value
body: <p>lets say i have some values: .008, .08, .8, 8, 80, 800.  I need a function where i can input these values and return .001, .01, .1, 1, 10, 100 etc... </p>
  
  <p>example:</p>
  
  <pre><code>def func(v):
      a = do something using v.....
      return a
  
  func(.009) = .001
  func(.06)  = .01 
  func(1234) = 1000
  </code></pre>