>>1 Kotlin] 비트연산 /16진수 / 시프트연산 / and / or / shift Log.d("===", 0x01.toInt().toString()) // 1 Log.d("===", 0x11.toInt().toString()) // 17 Log.d("===", 0x0A.toInt().toString()) // 10 16진수 0x01은 2진수로 변환시 00000001 And 연산 : 둘다 1일때 1 // 둘다 true 일때 true Or 연산 : 둘 중 하나가 1이면 1 // 둘 중 하나가 true면 true 시프트 연산 : 비트를 왼쪽이나 오른쪽으로 옮기는 연산 왼쪽으로 한번 할 때마다 *2 1 2 == 6 https://blog.naver.com/PostView.nhn?blogId=yuyyulee&logNo=221079465686&categoryNo=10&parentCategoryN.. 2022. 4. 13. 이전 1 다음