computeBias static method

int computeBias(
  1. int exponentWidth
)

Return the exponent value representing the true zero exponent 2^0 = 1 often termed computeBias or the offset of the exponent

Implementation

static int computeBias(int exponentWidth) =>
    pow(2, exponentWidth - 1).toInt() - 1;