mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-19 13:49:53 +00:00
8 lines
95 B
Go
8 lines
95 B
Go
|
package util
|
||
|
|
||
|
import "math"
|
||
|
|
||
|
func Odd(n int) bool {
|
||
|
return math.Mod(float64(n), 2.0) == 1.0
|
||
|
}
|