mathsignificand Method (Double) |
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)
Syntaxpublic static double significand(
double number
)
Public Shared Function significand (
number As Double
) As Double
public:
static double significand(
double number
)
static member significand :
number : float -> float
Parameters
- number
- Type: SystemDouble
A floating-point number.
Return Value
Type:
DoubleThe 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(number) * 2^logb(number).
If number is subnormal, it is normalized so that the significand falls in the interval [1, 2).
ExamplesAssert.IsTrue(math.significand(0D) == 0D);
Assert.IsTrue(math.significand(-0D) == -0D);
Assert.IsTrue(math.significand(1D) == 1D);
Assert.IsTrue(math.significand(4D) == 1D);
Assert.IsTrue(math.significand(6D) == 1.5D);
Assert.IsTrue(math.significand(7D) == 1.75D);
Assert.IsTrue(math.significand(8D) == 1D);
Assert.IsTrue(math.significand(math.DBL_DENORM_MIN) == 1D);
Assert.IsTrue(math.significand(0D) = 0D);
Assert.IsTrue(math.significand(-0D) = -0D);
Assert.IsTrue(math.significand(1D) = 1D);
Assert.IsTrue(math.significand(4D) = 1D);
Assert.IsTrue(math.significand(6D) = 1.5D);
Assert.IsTrue(math.significand(7D) = 1.75D);
Assert.IsTrue(math.significand(8D) = 1D);
Assert.IsTrue(math.significand(math.DBL_DENORM_MIN) = 1D);
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also