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

16 lines
162 B
Go

package mathUtil
import "fmt"
func ExampleRound() {
res1 := Round(3.14)
res2 := Round(3.56)
fmt.Println(res1)
fmt.Println(res2)
// Output:
// 3
// 4
}