samedi 27 décembre 2014

Need an efficient and correct way to clear a bit you aren't sure is 1 or 0 in Javascript


I have a bitstring, I need to ensure a given bit is 0 but I don't know in advance whether it's a 1 or 0. Is there a way to just tell Javascript, this bit is zero, no matter what it was before?





Aucun commentaire:

Enregistrer un commentaire