Language/kotlin (1) 썸네일형 리스트형 [Kotlin] 기본자료형과 변수선언 코틀린의 기본자료형 Integers 코틀린에는 4가지 integer 타입이 있습니다. 각 타입은 고정된 비트 수를 저장할 수 있습니다. Type Bits Value range Byte 8 bits -128 ~ 127 Short 16 bits -32768 ~ 32767 Int 32 bits -2147483648 ~ 2147483647 Long 64 bits -huge ~ huge-1 Floating points 코틀린에는 2가지 Floating points 타입이 있습니다. Type Bits Float 32 bits Double 64 bits Booleans 코틀린에는 Boolean 타입이 있습니다. Boolean 타입 객체는 true나 false 두 가지 상태만을 가질 수 있습니다. Character a.. 이전 1 다음