TDouble.ToSignificantDigits Method

Formats the value with the specified number of significant digits.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.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