본문 바로가기

분류 전체보기

python 으로 1.1 + 0.1 == 1.2 결과가 False 인 이유 Q : python 으로 1.1 + 0.1 == 1.2 결과가 False 인 이유 설명 Python에서 1.1 + 0.1 == 1.2가 False로 평가되는 이유는 부동소수점 수의 표현 방식과 관련이 있습니다. 컴퓨터는 2진수를 사용하여 수를 표현하고 계산하는데, 이 때문에 일부 10진수 소수점 수는 정확하게 표현될 수 없습니다. 부동소수점 표현 대부분의 컴퓨터 시스템은 IEEE 754 표준을 사용하여 부동소수점 수를 표현합니다. 이 표준에서, 수는 지수와 가수로 분리되어 2진수 형태로 표현됩니다. 하지만, 10진수 소수점 수를 2진수로 변환할 때 정확하게 표현할 수 없는 경우가 종종 발생합니다. Python에서의 예시 Python에서 1.1과 0.1을 더할 때, 실제 내부적으로는 정확한 1.2가 아닌 .. 더보기
1055 회차에서 3등 당첨된거.. 지난 02월 18일 (토) 추첨한 1055 회차에서 3등 당첨된거.. 내일은 1등되면 좋겠다 ㅎㅎ 더보기
android-kotlin-hybrid android-kotlin-hybrid This is a simple hybrid App (Android, Kotlin) Features * Load your site, for example : github profile * Receive push notification token and messages. Getting Start * Step 1 : First of all Create Firebase project and replace the google-services.json with yours. * Step 2 : Build and run Open project with Android studio Build and run project * Step 3 Check token and messages C.. 더보기
android-java-hybrid # android-java-hybrid This is a simple hybrid App (Android, Java) ## Features * Load your site, for example : github profile * Receive push notification token and messages. ## Getting Start * Step 1 : First of All Create Firebase project and replace the google-services.json with yours. * Step 2 : Build and Run Open project with Android studio Build and run project * Step 3 Check token and messag.. 더보기
ios-swift-hybrid # ios-swift-hybrid This is a simple hybrid App (iOS, Swift) ## Features * Load your site, for example : github profile * Receive push notification token and messages. ## Getting Start * Step 1 : First of all pod install --verbose Create Firebase project and replace the GoogleService-Info.plist file with yours. * Step 2 : Build and run Open Xcode project with "Cube.xcworkspace" Build and run proj.. 더보기