TDoubleToSignificantDigits Method

Format the value with the indicated number of significant digits.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.67.9018.0
C#
public static string ToSignificantDigits(
	double value,
	int significantDigits,
	bool trailingZeros,
	MidpointRounding rounding
)

Parameters

value  Double
significantDigits  Int32
trailingZeros  Boolean
rounding  MidpointRounding

Return Value

String

See Also