def SciFormat(f, n) : s = f.str() t = "" count = 0 w = true for c in s : if c <> 'e' and w : if count < n+2 : t += c count += 1 else : t += c w = false return t