C-DEngine 5.105

TheCommonUtils..::..cdeTruncate Method (Double, Int32)

Truncates a double to the amount of digits specified.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static double cdeTruncate(
	double value,
	int digits
)
Public Shared Function cdeTruncate ( _
	value As Double, _
	digits As Integer _
) As Double
public:
static double^ cdeTruncate(
	double^ value, 
	int^ digits
)

Parameters

value
Type: Double
Input float variable.
digits
Type: Int32
Digits after the comma.

Return Value

The truncated value.