gitee.com/quant1x/num@v0.3.2/math32/logb.go (about)

     1  package math32
     2  
     3  import "math"
     4  
     5  func Logb(x float32) float32 {
     6  	return float32(math.Logb(float64(x)))
     7  }
     8  
     9  func Ilogb(x float32) int {
    10  	return math.Ilogb(float64(x))
    11  }