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
81
S
33
G
27
Posts: 1,029
Reputation: 21,143

Post » Fri Jun 03, 2016 9:52 pm

Thx 4 that Site.
B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450

Previous

Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 8 guests