Files
go-easy-utils/mathUtil/floor_example_test.go
jeffery f97913a2bc Feature/math util (#22)
Development supports the math package
2023-04-12 11:10:07 +08:00

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
}