mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:34:15 +08:00
格式化4.3章中代码格式 (#736)
This commit is contained in:
@@ -32,9 +32,9 @@ f(n + 5) // 无类型的数字型常量 “5” 它的类型在这里变成了 i
|
||||
数字型的常量是没有大小和符号的,并且可以使用任何精度而不会导致溢出:
|
||||
|
||||
```go
|
||||
const Ln2= 0.693147180559945309417232121458\
|
||||
const Ln2 = 0.693147180559945309417232121458\
|
||||
176568075500134360255254120680009
|
||||
const Log2E= 1/Ln2 // this is a precise reciprocal
|
||||
const Log2E = 1/Ln2 // this is a precise reciprocal
|
||||
const Billion = 1e9 // float constant
|
||||
const hardEight = (1 << 100) >> 97
|
||||
```
|
||||
|
Reference in New Issue
Block a user