Click or drag to resize
mathsignificand Method (Single)
Gets the significand 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 float significand(
	float number
)

Parameters

number
Type: SystemSingle
A floating-point number.

Return Value

Type: Single
The significand of the specified floating-point number, or number if it not normal or subnormal.
Remarks

The significand is a number in the interval [1, 2) so that number = significand(Single)(number) * 2^logb(Single)(number). If number is subnormal, it is normalized so that the significand falls in the interval [1, 2).

Examples
Assert.IsTrue(math.significand(0F) == 0F);
Assert.IsTrue(math.significand(-0F) == -0F);
Assert.IsTrue(math.significand(1F) == 1F);
Assert.IsTrue(math.significand(4F) == 1F);
Assert.IsTrue(math.significand(6F) == 1.5F);
Assert.IsTrue(math.significand(7F) == 1.75F);
Assert.IsTrue(math.significand(8F) == 1F);
Assert.IsTrue(math.significand(math.FLT_DENORM_MIN) == 1F);
See Also