Edit

Share via


Single.Truncate(Single) Method

Definition

Truncates a value.

C#
public static float Truncate(float x);

Parameters

x
Single

The value to truncate.

Returns

The truncation of x.

Implements

Applies to

Product Versions
.NET 7, 8, 9, 10