floorPowerOfTwo<T extends num> static method
Implementation
static double floorPowerOfTwo<T extends num>(T value) {
return math.pow(2, (math.log(value) / math.ln2).floor().toDouble()).toDouble();
}
static double floorPowerOfTwo<T extends num>(T value) {
return math.pow(2, (math.log(value) / math.ln2).floor().toDouble()).toDouble();
}