update
This commit is contained in:
16
kotlin/kotlin.md
Normal file
16
kotlin/kotlin.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# 文件后缀
|
||||
*.kt
|
||||
# 基础类型
|
||||
### 数字
|
||||
|类型|大小 字节数|最大值|最小值|
|
||||
|-|-|-|-|
|
||||
|byte|8|-128|127|
|
||||
|shot|16|-32768|32767|
|
||||
|int|32|-2^31^|2^31^-1|
|
||||
|long|64|-2^63^|2^63^-1|
|
||||
所有未超过int大小的类性都判断为int 超过了为long
|
||||
想设置为long 在数字后面加大写 L
|
||||
### 浮点数
|
||||
float double
|
||||
默认double
|
||||
如果为float 后面加大写F
|
||||
Reference in New Issue
Block a user