# How do I Change 1,000 To 1K

Get help using Construct 2

### » Tue Dec 08, 2015 5:57 am

How to do this?
1,000 = 1K
1,000,000 = 1M
1,000,000,000 = 1B
......
.....
....
...
..
.
B
7
S
1
Posts: 27
Reputation: 387

### » Tue Dec 08, 2015 7:46 am

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,902

Thanks! man.
B
7
S
1
Posts: 27
Reputation: 387

Any Other ways?
B
7
S
1
Posts: 27
Reputation: 387

### » Fri Dec 11, 2015 2:34 pm

Here's a function that would do it:

For example, if you call a function where Parameter 0 = 25000000, the function's return values would be "25M".
B
67
S
20
G
8
Posts: 341
Reputation: 12,510

### » Fri Dec 11, 2015 7:09 pm

Hi

Here's another way.

http://www.sizzle-games.com/suffix.capx

you can add as many outcomes as you wish.

Hope this helps.

edit

updated capx @ 11.30 uk time on 11/12/15
Super Soccer Skills\Bushy Ball\Sticky Web\Snake

During the gold rush it was a good time to be in the pick and shovel business
B
58
S
19
G
2
Posts: 273
Reputation: 7,298

### » Sat Dec 12, 2015 9:16 am

Thank you both of you.
But how do i make it to show

9,999 to 9.9k
9,999,999 to 9.9m

something like that?

on zatyka's
it only looks for "000"
while on sizcoz
it does't remove those remainders.
B
7
S
1
Posts: 27
Reputation: 387

### » Sat Dec 12, 2015 9:35 am

Well mathematically speaking 9.999 is not the same as 9.9K

If you round it, it would be rounded up..
you could use the floor() expression for this, ofcourse..

For example your variable is 9999

set text to
floor(variable/100)/10

would set the text to 9.9
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Thanks Man
B
7
S
1
Posts: 27
Reputation: 387