Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
3 Fixed another issue
source | link

Python 3, 107127 bytes

def f(n):l=len(strs=str(n);l=len(s)-4;return[n,4;return f"{round(n,~l):,}"[:4].replace(*",.").rstrip('.')+"KMBT"[-~l+"KMBT"[l//3]][n>9999]3+(int(s[3])>4)]if n>9999else n

Try it online!Try it online!

Python 3, 107 bytes

def f(n):l=len(str(n))-4;return[n,f"{round(n,~l):,}"[:4].replace(*",.").rstrip('.')+"KMBT"[-~l//3]][n>9999]

Try it online!

Python 3, 127 bytes

def f(n):s=str(n);l=len(s)-4;return f"{round(n,~l):,}"[:4].replace(*",.").rstrip('.')+"KMBT"[l//3+(int(s[3])>4)]if n>9999else n

Try it online!

2 deleted 56 characters in body
source | link

Python 3, 111107 bytes

def f(n):l=len(str(n))-4;return 4;return[n,f"{round(n,~l):,}"[:4].replace(*",.").rstrip('.')+"KMBT"[-~l//3]if n>9999else n3]][n>9999]

Try it online!

This could probably be golfed further than this.Try it online!

Python 3, 111 bytes

def f(n):l=len(str(n))-4;return f"{round(n,~l):,}"[:4].replace(*",.").rstrip('.')+"KMBT"[-~l//3]if n>9999else n

Try it online!

This could probably be golfed further than this.

Python 3, 107 bytes

def f(n):l=len(str(n))-4;return[n,f"{round(n,~l):,}"[:4].replace(*",.").rstrip('.')+"KMBT"[-~l//3]][n>9999]

Try it online!

1
source | link

Python 3, 111 bytes

def f(n):l=len(str(n))-4;return f"{round(n,~l):,}"[:4].replace(*",.").rstrip('.')+"KMBT"[-~l//3]if n>9999else n

Try it online!

This could probably be golfed further than this.