SignificantDigitsNumberRounder.RoundDouble(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Rounds a Double number to the specified number of significant digits.
public:
virtual double RoundDouble(double value) = RoundDouble;
double RoundDouble(double const& value);
public double RoundDouble(double value);
function roundDouble(value)
Public Function RoundDouble (value As Double) As Double
Parameters
- value
-
Double
double
The Double value to be rounded.
Returns
double
The rounded number. This result is a double precision floating point number, which is not necessarily an integer.
Implements
Remarks
The rounding strategy is based on the values of SignificantDigits and RoundingAlgorithm.
Note
This method is precise only within the limits of the Double data type, or approximately 15 digits.