gitee.com/quant1x/num@v0.3.2/math32/signbit.go (about) 1 package math32 2 3 // Signbit returns true if x is negative or negative zero. 4 func Signbit(x float32) bool { 5 return Float32bits(x)&(1<<31) != 0 6 }