15 from builtins
import int
16 if isinstance(s, int)
or isinstance(s, float):
18 if s[0] ==
'-' or s[0] ==
'+':
23 if dSep !=
'' and s.rfind(dSep)>0:
24 rhs=s[s.rfind(dSep)+1:]
26 if len(s) <= 3:
return lhs + s + dSep + rhs
27 return lhs +
splitThousands(s[:-3], tSep) + tSep + s[-3:] + dSep + rhs
29 if len(s) <= 3:
return lhs + s