mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2026-04-23 00:07:09 +08:00
f97913a2bc
Development supports the math package
16 lines
163 B
Go
16 lines
163 B
Go
package mathUtil
|
|
|
|
import "fmt"
|
|
|
|
func ExampleFloor() {
|
|
res1 := Floor(3.14)
|
|
res2 := Floor(-6.5)
|
|
|
|
fmt.Println(res1)
|
|
fmt.Println(res2)
|
|
|
|
// Output:
|
|
// 3
|
|
// -7
|
|
}
|