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
71
S
30
G
25
Posts: 984
Reputation: 19,503

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: BackendFreak, farsen, kellehk, lahbach, newt, TRMG and 31 guests