Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] Is it possible to do a type cast from string to int in tier one?

Author
Message
jsheedy
5
Years of Service
User Offline
Joined: 29th Aug 2018
Location:
Posted: 17th Sep 2018 04:48
I would like to read a value form user input, and use that as a integer value, not a string?
Josh

The author of this post has marked a post as an answer.

Go to answer

smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 17th Sep 2018 09:11
This post has been marked by the post author as the answer.
Val(string)
Returns the integer value of the string provided.

Str(float, decimals)
Returns the string of the number provided (optional decimal cutoff)

life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
jsheedy
5
Years of Service
User Offline
Joined: 29th Aug 2018
Location:
Posted: 17th Sep 2018 18:14
Thanks!
Josh

Login to post a reply

Server time is: 2024-04-26 19:12:10
Your offset time is: 2024-04-26 19:12:10