C-DEngine 5.105

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

Truncates a Float to the amount of digits specified.

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

Syntax


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

Parameters

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

Return Value