Hyroshima Posted July 5, 2018 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 189 Reputation: 122 Joined: 07/11/14 Last Seen: November 27, 2024 Share Posted July 5, 2018 Hello again I was searching and there is nothing where I can check if a number is odd or pair. can not create a function to check because the number may or may not have a high value. Thank you to all who can help! By: Hyro~ Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted July 5, 2018 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 11 hours ago Share Posted July 5, 2018 (edited) https://github.com/rathena/rathena/blob/532e043490368eea038a1808a6b35bf7c4fa0e97/doc/script_commands.txt#L678 % - will give you the remainder of the division. 7%2 is equal to 1. also do you mean out side of rathena ? why is this in general support section ? Edited July 5, 2018 by sader1992 Quote Link to comment Share on other sites More sharing options...
0 Hyroshima Posted July 5, 2018 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 189 Reputation: 122 Joined: 07/11/14 Last Seen: November 27, 2024 Author Share Posted July 5, 2018 (edited) 1 hour ago, sader1992 said: https://github.com/rathena/rathena/blob/532e043490368eea038a1808a6b35bf7c4fa0e97/doc/script_commands.txt#L678 % - will give you the remainder of the division. 7%2 is equal to 1. also do you mean out side of rathena ? why is this in general support section ? Sorry for posting in the wrong section, I'm a little crazy. I forgot about this basic math question... Any value divided by 2 that has left over is odd Thank you! SOLVED!! Sorry, i edited and ended up doing another post '-' Edited July 5, 2018 by Hyroshima Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted July 5, 2018 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 11 hours ago Share Posted July 5, 2018 Moved to the right section Quote Link to comment Share on other sites More sharing options...
Question
Hyroshima
Hello again
I was searching and there is nothing where I can check if a number is odd or pair.
can not create a function to check because the number may or may not have a high value.
Thank you to all who can help!
By: Hyro~
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.