getExponent

Returns the unbiased exponent used in the representation of a double. Special cases:

  • If the argument is NaN or infinite, then the result is Double.MAX_EXPONENT + 1.

  • If the argument is zero or subnormal, then the result is Double.MIN_EXPONENT - 1.

Return

the unbiased exponent of the argument

Since

1.6

Parameters

d

a double value


Returns the unbiased exponent used in the representation of a float. Special cases:

  • If the argument is NaN or infinite, then the result is Float.MAX_EXPONENT + 1.

  • If the argument is zero or subnormal, then the result is Float.MIN_EXPONENT - 1.

Return

the unbiased exponent of the argument

Since

1.6

Parameters

f

a float value