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