centerOnBit method

double centerOnBit(
  1. int bitDepth
)

Implementation

double centerOnBit(int bitDepth) =>
    ((floor() >> bitDepth) << bitDepth) + (1 << (bitDepth - 1)).toDouble();