mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2025-09-27 03:15:55 +08:00
16 lines
160 B
Go
16 lines
160 B
Go
package mathx
|
|
|
|
import "fmt"
|
|
|
|
func ExampleFloor() {
|
|
res1 := Floor(3.14)
|
|
res2 := Floor(-6.5)
|
|
|
|
fmt.Println(res1)
|
|
fmt.Println(res2)
|
|
|
|
// Output:
|
|
// 3
|
|
// -7
|
|
}
|