ProjectTaskUtilSetPrecision(Double, 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 double SetPrecision(
	double number,
	int decimalPlaces
)

Parameters

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

Return Value

Double
The provided number, limited to the specified precision.

See Also