15.05.2014, 20:29
IsNumberOdd:
It checks whether a number is odd or not.
It used the parity bit http://en.wikipedia.org/wiki/Parity_bit
Credits to DesignMcCry that posted it on the spanish section.
It checks whether a number is odd or not.
pawn Код:
#define IsNumberOdd(%0) ((%0&0x01):(false)?(true))
Credits to DesignMcCry that posted it on the spanish section.