ProjectTaskUtilSetPrecision(Single, Int32) Method

Set the decimal precision on the provided number and return the result.

Definition

Namespace: ProjectTask
Assembly: ProjectTask (in ProjectTask.dll) Version: 25.2814.3647
C#
public static float SetPrecision(
	float number,
	int decimalPlaces
)

Parameters

number  Single
The number to be adjusted.
decimalPlaces  Int32
Number of decimal places precision to allow on the provided number.

Return Value

Single
The provided number, limited to the specified precision.

See Also