W
Whiskey01
Guest
Hi guys ive come across a bit of a problem and i need a bit of help.....
im making a game where you can have a lot of money and i dont want to make the user have to read like 12 digits of numbers just to see how much they have. so i would like to create a piece of code such as this pseudo code bellow.....if you can help me please do.
if money >= 10000
money = money / 1000 + "k"
k = money * 1000
but i still want the money to be as much as the user has i just dont want to show the entire thing for example.
if ihs money is 12567 i would like it to print as 12.5k although he still has 12567. please help im really stuck and have no idea how to solve this.
im making a game where you can have a lot of money and i dont want to make the user have to read like 12 digits of numbers just to see how much they have. so i would like to create a piece of code such as this pseudo code bellow.....if you can help me please do.
if money >= 10000
money = money / 1000 + "k"
k = money * 1000
but i still want the money to be as much as the user has i just dont want to show the entire thing for example.
if ihs money is 12567 i would like it to print as 12.5k although he still has 12567. please help im really stuck and have no idea how to solve this.