You could make it check if it passed the required amount, so for an example.
Player has 500$, it won't turn into 0.5k, but it'll stay as 500$ until they reach 1000 or more, where it should turn into 1k
So just check if player has equal or more money than 1000 and then just divide that number by 1000 and add "k" at the end.