go package demo: math
This commit is contained in:
@@ -207,6 +207,7 @@ Here are the Go packages that can be imported correctly:
|
||||
* [unicode/utf8](https://pkg.go.dev/unicode/utf8)
|
||||
* [unicode/utf16](https://pkg.go.dev/unicode/utf16)
|
||||
* [math/bits](https://pkg.go.dev/math/bits)
|
||||
* [math](https://pkg.go.dev/math)
|
||||
|
||||
|
||||
## How to install
|
||||
|
||||
11
_demo/math/math.go
Normal file
11
_demo/math/math.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"math"
|
||||
)
|
||||
|
||||
func main() {
|
||||
println(math.Sqrt(2))
|
||||
println(math.Abs(-1.2))
|
||||
println(math.Ldexp(1.2, 3))
|
||||
}
|
||||
Reference in New Issue
Block a user