Double.Truncate(Double) Method

Definition

Truncates a value.

public static double Truncate (double x);

Parameters

x
Double

The value to truncate.

Returns

The truncation of x.

Implements

Applies to

Product Versions
.NET 7, 8, 9