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.

DarkBASIC Professional Discussion / floats not savinging percents

Author
Message
Southside Games
16
Years of Service
User Offline
Joined: 1st Jan 2010
Location: Don\'t tell me what to do!
Posted: 28th Mar 2012 19:20
Hello.

Basically i tried


and yet I never get a decimal place. how can I record the mousemove divided by a number?

Thanks much.
Max P
16
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 28th Mar 2012 19:45

If you want decimals you need to include a float value in the calculation.

Southside Games
16
Years of Service
User Offline
Joined: 1st Jan 2010
Location: Don\'t tell me what to do!
Posted: 28th Mar 2012 20:01 Edited at: 29th Mar 2012 03:36
That worked. Thank you.

Login to post a reply

Server time is: 2026-07-09 15:47:41
Your offset time is: 2026-07-09 15:47:41