Update 01_The_Basics.md (#1090)

* Update 01_The_Basics.md

* Update 01_The_Basics.md

Co-authored-by: Jie Liang <lj925184928@gmail.com>
This commit is contained in:
jeffasd
2020-10-05 21:37:33 +08:00
committed by GitHub
parent 83500eba22
commit f2999daf52

View File

@ -213,7 +213,7 @@ Swift 也提供了一个特殊的无符号类型 `UInt`,长度与当前平台
> 注意
>
> `Double` 精确度很高至少有15位数字,而 `Float` 只有6位数字。选择哪个类型取决于你的代码需要处理的值的范围,在两种类型都匹配的情况下,将优先选择 `Double`。
> `Double` 精确度很高,至少有 15 位小数,而 `Float` 只有 6 位小数。选择哪个类型取决于你的代码需要处理的值的范围,在两种类型都匹配的情况下,将优先选择 `Double`。
## 类型安全和类型推断 {#type-safety-and-type-inference}