How do you make a number converter?

i am makeing clicker and i want to make number converter like from 1000 to1,000 or 1k and i dont know how to do it

In AI2, if you convert the number to one of the formats you suggest, then the number will become a string. You will need to maintain the original number if you want to do calculations. There are some extensions that can provide the conversion for you, search here: