Files
go-easy-utils/mathx/round_example_test.go
2025-07-08 15:26:54 +08:00

16 lines
159 B
Go

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