TDouble.ToSignificantDigits Method
Formats the value with the specified number of significant digits.
Namespace: SMath.Math.NumericAssembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.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