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.

Author
Message
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 15th Aug 2016 15:58 Edited at: 15th Aug 2016 16:37
Why the Mod(50.0, 6.25) returns 2?

EDIT: Please ignore my post, thanks!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Aug 2016 00:16
Mod uses integers, it's truncating 6.25 to 6. Just pointing that out in case anyone else sees this and wonders.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
george++
AGK Tool Maker
16
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 17th Aug 2016 10:22
Quote: "Mod uses integers"

Thanks for clarifying. I realized it after my post
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 20th Aug 2016 15:36
For those who do not know how to work around this limitation.

Kevin Picone
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 20th Aug 2016 18:46
or use FMOD

PlayBASIC To HTML5/WEB - Convert PlayBASIC To Machine Code

Login to post a reply

Server time is: 2024-04-27 06:00:06
Your offset time is: 2024-04-27 06:00:06