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

16 lines
160 B
Go

package mathUtil
import "fmt"
func ExampleCeil() {
res1 := Ceil(3.14)
res2 := Ceil(-6.5)
fmt.Println(res1)
fmt.Println(res2)
// Output:
// 4
// -6
}