def float2(val, min_repeat=6):
  """Increase number of decimal places of a repeating decimal.
     e.g. 34.111111 -> 34.1111111111111111"""
  repeat = 0
  lc = ""
  for i in range(len(val)):
    c = val[i]
    if c == lc:
      repeat += 1
      if repeat == min_repeat:
        return float(val[:i+1] + c * 10)
    else:
      lc = c
      repeat = 1
  return float(val)