Muhammet Emin Gündoğar
05/25/2022, 6:45 PMfun Int.floorEven() = this and 0x01.inv()
I was reading a project and i saw this code but i could not understand why this code flooring the number to even i know 01 inverse equals to -2 because of 2's complement equals to 1's complement - 1 and 2 complent is negative of that number but i could not understand why this code will always work?Ilya Muradyan
05/26/2022, 8:54 AM