Comment on I wish

DarkMessiah@lemmy.world ⁨10⁩ ⁨months⁩ ago

Just in case anyone was looking for a decent way to do it…

if (((number/2) - round(number/2)) == 0) return true; else return false;

Or whatever the rounding function is in your language of choice.

source
Sort:hotnewtop