How do I Convert an Input value to a number?

Get help using Construct 2

Post » Fri Apr 10, 2015 7:02 am

I need to be able to type numbers in and then do math on them and save them/export them. Is this possible?
B
4
Posts: 33
Reputation: 266

Post » Fri Apr 10, 2015 7:52 am

With float(x).
So if you enter string you can convert it if you put it into brackets after float.

https://www.scirra.com/manual/126/system-expressions
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Fri Apr 10, 2015 9:38 am

Message: UtemboMcjib0 is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
razorMonkey wrote:With float(x).
So if you enter string you can convert it if you put it into brackets after float.



Wow thanks alot, here everyone I did this to make it work:

float(INPUTDATA.Text)<enter math operations>
B
4
Posts: 33
Reputation: 266


Return to How do I....?

Who is online

Users browsing this forum: Alex Bryant, Moordhuis, omnipaws, tarek2 and 10 guests