Jump to content

Question

Posted

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~

3 answers to this question

Recommended Posts

  • 0
Posted (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 by Hyroshima

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...