How do I Change 1,000 To 1K

Get help using Construct 2

Post » 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

Post » 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
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Tue Dec 08, 2015 12:42 pm

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

Post » Fri Dec 11, 2015 12:56 pm

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

Post » Fri Dec 11, 2015 2:34 pm

Here's a function that would do it:
Image

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

Post » 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
Bushy Ball\Boatman Bill\Sticky Web\Snake

Image ImageImageImage

During the gold rush it was a good time to be in the pick and shovel business
B
45
S
13
Posts: 247
Reputation: 5,247

Post » 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.
sorry for bad english.
B
7
S
1
Posts: 27
Reputation: 387

Post » 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

Post » Sat Dec 12, 2015 6:39 pm

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


Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 49 guests