mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2025-10-16 03:50:37 +08:00
15
mathUtil/floor_example_test.go
Normal file
15
mathUtil/floor_example_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package mathUtil
|
||||
|
||||
import "fmt"
|
||||
|
||||
func ExampleFloor() {
|
||||
res1 := Floor(3.14)
|
||||
res2 := Floor(-6.5)
|
||||
|
||||
fmt.Println(res1)
|
||||
fmt.Println(res2)
|
||||
|
||||
// Output:
|
||||
// 3
|
||||
// -7
|
||||
}
|
Reference in New Issue
Block a user