Click or drag to resize
mathexponent Method (Single)
Gets the exponent bits of the specified floating-point number.

Namespace:  C
Assembly:  C.math (in C.math.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int exponent(
	float number
)

Parameters

number
Type: SystemSingle
A floating-point number.

Return Value

Type: Int32
The exponent bits of the specified floating-point number; i.e. the biased exponent.
Remarks
numberBiased ExponentUnbiased Exponent
±NaN255 (FLT_EXP_MAX + 1 + FLT_EXP_BIAS)N/A
PositiveInfinity255 (FLT_EXP_MAX + 1 + FLT_EXP_BIAS)N/A
NegativeInfinity255 (FLT_EXP_MAX + 1 + FLT_EXP_BIAS)N/A
±FLT_MAX255 (FLT_EXP_MAX + 1 + FLT_EXP_BIAS)128 (FLT_EXP_MAX + 1)
±FLT_MIN255 (FLT_EXP_MAX + 1 + FLT_EXP_BIAS)-127 (FLT_EXP_MAX + 1)
±FLT_DENORM_MAX00
±FLT_DENORM_MIN00
±000
See Also