minus-squarehuf [he/him]@hexbear.nettoProgramming Horror@programming.dev•God I wish there was an easier way to do thislinkfedilinkEnglisharrow-up4·10 months agojust check the last bit jesus christ, what is it with these expensive modulo operations?! return !(n&1); linkfedilink
minus-squarehuf [he/him]@hexbear.nettoProgrammer Humor@programming.dev•isEven APIlinkfedilinkEnglisharrow-up2·10 months agozero is even, so i dont see how that one’s wrong linkfedilink
minus-squarehuf [he/him]@hexbear.nettoProgrammer Humor@programming.dev•Implemented as requestedlinkfedilinkEnglisharrow-up3·11 months agoi like it. it’d be a neat quirk. linkfedilink
just check the last bit jesus christ, what is it with these expensive modulo operations?!
return !(n&1);