Uredi

Deli z drugimi prek


NFloat.Round Method

Definition

Overloads

Round(NFloat)

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

Round(NFloat, Int32)

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

Round(NFloat, MidpointRounding)

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

Round(NFloat, Int32, MidpointRounding)

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

Round(NFloat)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

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

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

Parameters

x
NFloat

The value to round.

Returns

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

Implements

Applies to

Round(NFloat, Int32)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

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

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

Parameters

x
NFloat

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(NFloat, MidpointRounding)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

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

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

Parameters

x
NFloat

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(NFloat, Int32, MidpointRounding)

Source:
NFloat.cs
Source:
NFloat.cs
Source:
NFloat.cs

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

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

Parameters

x
NFloat

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