BASIC
KOTLIN 공식 레퍼런스 BASIC 챕터를 번역한 내용입니다.
BASIC Types
Numbers
val one = 1 // Int
val threeBillion = 3000000000 // Long
val oneLong = 1L // Long
val oneByte: Byte = 1val pi = 3.14 // Double
val e = 2.7182818284 // Double
val eFloat = 2.7182818284f // Float, actual value is 2.7182817Underscores in numeric literals
Representation
Operations
Strings
String literals
Control Flow: if, when, for, while
If Expression
When Expression
For Loops
While Loops
Returns and Jumps
Break and Continue Labels
Return at Labels
Last updated