getExponent()

Returns the unbiased exponent used in the representation of a float.

Syntax

getExponent()

Usage

Special cases:
  • If the value is NaN or infinite, then the result is Float. MAX_EXPONENT + 1.
  • If the value is zero or subnormal, then the result is Float. MIN_EXPONENT -1.