TDoubleToSignificantDigits Method
Format the value with the indicated number of significant digits.
Namespace: SMath.Math.NumericAssembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.67.9018.0
public static string ToSignificantDigits(
double value,
int significantDigits,
bool trailingZeros,
MidpointRounding rounding
)
Public Shared Function ToSignificantDigits (
value As Double,
significantDigits As Integer,
trailingZeros As Boolean,
rounding As MidpointRounding
) As String
public:
static String^ ToSignificantDigits(
double value,
int significantDigits,
bool trailingZeros,
MidpointRounding rounding
)
static member ToSignificantDigits :
value : float *
significantDigits : int *
trailingZeros : bool *
rounding : MidpointRounding -> string
- value Double
- significantDigits Int32
- trailingZeros Boolean
- rounding MidpointRounding
String