Files
strom/util/math.go
T

8 lines
103 B
Go

package util
import "math"
func BpeByNum(x float64) uint8 {
return uint8(math.Ceil(math.Log2(x)))
}