Share via


SignificantDigitsNumberRounder.RoundDouble(Double) Method

Definition

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

double

The rounded number. This result is a double precision floating point number, which is not necessarily an integer.

Implements

M:Windows.Globalization.NumberFormatting.INumberRounder.RoundDouble(System.Double) M:Windows.Globalization.NumberFormatting.INumberRounder.RoundDouble(double)

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.

Applies to