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

     1  package math32
     2  
     3  import "math"
     4  
     5  func Log2(x float32) float32 {
     6  	return float32(math.Log2(float64(x)))
     7  }