
def dot6fdot(x):
  s = "%.6f" % (x,)
  if ("." in s): return s
  return "." + s

def dot6fdot_list(l):
  s = ""
  for x in l: s += " " + dot6fdot(x)
  return s[1:]

def xtal6g(x):
  import string
  s = "%.6g" % (x,)
  i = string.find(s, "e")