How do I round roots to at three decimal places

Get help using Construct 2

Post » Fri Oct 28, 2016 9:04 pm

How to round roots to three decimal places, eg sqrt (2) should give 1:41
and sqrt (6) or sqrt (8) should appear only 2.45 and 2.82 respectively
B
33
S
9
G
3
Posts: 280
Reputation: 4,287

Post » Fri Oct 28, 2016 9:16 pm

Code: Select all
round(sqrt(2) * 100)/100

This should give you the expected result.
B
76
S
31
G
27
Posts: 1,015
Reputation: 20,790

Post » Fri Oct 28, 2016 9:26 pm

Thanks
B
33
S
9
G
3
Posts: 280
Reputation: 4,287


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests