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.

AppGameKit Studio Chat / int + float float

Author
Message
Onomatopoesie
User Offline
Joined: 6th Aug 2019
Location: Germany
Posted: 3rd Sep 2019 07:47 Edited at: 3rd Sep 2019 07:47
In other programming languages the combination of integer and float becomes a float. I think that makes sense. Now I have noticed that here AppGameKit behaves differently. Should not that be changed?



f1# will be: 1.5
f2# will be: 1.0 !

For example, generating a random number of type float (1.0 to 5.0) requires three commands instead of one ...
Qugurun
AGK Developer
4
Years of Service
User Offline
Joined: 8th Dec 2014
Location: Tyumen, Russia
Posted: 3rd Sep 2019 09:33


https://www.instagram.com/qugurun/
Onomatopoesie
User Offline
Joined: 6th Aug 2019
Location: Germany
Posted: 3rd Sep 2019 09:48

Couldn't think strait at that moment, i guess. You're right. There were both values of the type integer.
Thank you for giving me a helpful knock on the head.

Login to post a reply

Server time is: 2019-09-22 18:16:02
Your offset time is: 2019-09-22 18:16:02