How do I change the quantity of numbers shown after a comma

Just started using Construct 2? Post your questions here

Post » Tue Oct 13, 2015 7:57 pm

Hello people,
simple question, maybe noobish but, is there a way to set a number like 0,123456789 to 0,123 so that only the first three numbers are shown after the comma?
cheers and thanks for helping!
B
18
S
8
G
6
Posts: 35
Reputation: 4,764

Post » Tue Oct 13, 2015 8:52 pm

Image
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Tue Oct 13, 2015 8:58 pm

Image
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,892

Post » Tue Oct 13, 2015 10:38 pm

I like construct2 very much, but this community is what makes the software so nice to use!
Thank you both for helping me with this. I used it, for my counter to show the milliseconds.
B
18
S
8
G
6
Posts: 35
Reputation: 4,764

Post » Thu Sep 07, 2017 1:37 pm

Since the image is no longer online here is the calculation which was shown in the picture:

round(N * 100) / 100
for 2 decimal places, or 1000 for 3 decimal places,...
B
18
S
8
G
6
Posts: 35
Reputation: 4,764


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 7 guests