Ignore negative and treat value as positive?

Get help using Construct 2

Post » Fri Jun 03, 2016 7:53 pm

If you want to take an n-digits integer and consider it as a fraction of 1 (i.e. 234 => 0.234), you can do this
Code: Select all
10^(-len(str(Variable))) * Variable
or
Code: Select all
float("0." & Variable)
B
75
S
31
G
27
Posts: 1,012
Reputation: 20,759

Post » Fri Jun 03, 2016 9:52 pm

Thx 4 that Site.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Previous

Return to How do I....?

Who is online

Users browsing this forum: dop2000, Maako and 6 guests