Rediger

Del via


Half.Round Method

Definition

Overloads

Round(Half)

Rounds a value to the nearest integer using the default rounding mode (ToEven).

Round(Half, Int32)

Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven).

Round(Half, MidpointRounding)

Rounds a value to the nearest integer using the specified rounding mode.

Round(Half, Int32, MidpointRounding)

Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven).

Round(Half)

Source:
Half.cs
Source:
Half.cs
Source:
Half.cs

Rounds a value to the nearest integer using the default rounding mode (ToEven).

public:
 static Half Round(Half x) = System::Numerics::IFloatingPoint<Half>::Round;
public static Half Round (Half x);
static member Round : Half -> Half
Public Shared Function Round (x As Half) As Half

Parameters

x
Half

The value to round.

Returns

The result of rounding x to the nearest integer using the default rounding mode.

Implements

Applies to

Round(Half, Int32)

Source:
Half.cs
Source:
Half.cs
Source:
Half.cs

Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven).

public:
 static Half Round(Half x, int digits) = System::Numerics::IFloatingPoint<Half>::Round;
public static Half Round (Half x, int digits);
static member Round : Half * int -> Half
Public Shared Function Round (x As Half, digits As Integer) As Half

Parameters

x
Half

The value to round.

digits
Int32

The number of fractional digits to which x should be rounded.

Returns

The result of rounding x to digits fractional-digits using the default rounding mode.

Implements

Applies to

Round(Half, MidpointRounding)

Source:
Half.cs
Source:
Half.cs
Source:
Half.cs

Rounds a value to the nearest integer using the specified rounding mode.

public:
 static Half Round(Half x, MidpointRounding mode) = System::Numerics::IFloatingPoint<Half>::Round;
public static Half Round (Half x, MidpointRounding mode);
static member Round : Half * MidpointRounding -> Half
Public Shared Function Round (x As Half, mode As MidpointRounding) As Half

Parameters

x
Half

The value to round.

mode
MidpointRounding

The mode under which x should be rounded.

Returns

The result of rounding x to the nearest integer using mode.

Implements

Applies to

Round(Half, Int32, MidpointRounding)

Source:
Half.cs
Source:
Half.cs
Source:
Half.cs

Rounds a value to a specified number of fractional-digits using the default rounding mode (ToEven).

public:
 static Half Round(Half x, int digits, MidpointRounding mode) = System::Numerics::IFloatingPoint<Half>::Round;
public static Half Round (Half x, int digits, MidpointRounding mode);
static member Round : Half * int * MidpointRounding -> Half
Public Shared Function Round (x As Half, digits As Integer, mode As MidpointRounding) As Half

Parameters

x
Half

The value to round.

digits
Int32

The number of fractional digits to which x should be rounded.

mode
MidpointRounding

The mode under which x should be rounded.

Returns

The result of rounding x to digits fractional-digits using mode.

Implements

Applies to