Commits

Christoph Schindler  committed ae152d1

Number converter, first version.

  • Participants
  • Parent commits 4e500d8

Comments (0)

Files changed (1)

File 2012-09/sep.py

+def f(n,s='.',d=','):
+ a,b=str(n)[::-1].split('.')
+ a,i=a+d,1
+ for c in b:a,i=a+c+s[i%3:],i+1
+ return a[::-1]