Jump to content
  • 0

Identify odd number


Hyroshima

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

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

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

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 by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

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 by Hyroshima
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

Moved to the right section

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...