NFloat.Round Metod

Definition

Överlagringar

Name Description
Round(NFloat)

Avrundar ett värde till närmaste heltal med standard avrundningsläget (ToEven).

Round(NFloat, Int32)

Avrundar ett värde till ett angivet antal bråksiffror med standard avrundningsläget (ToEven).

Round(NFloat, MidpointRounding)

Avrundar ett värde till närmaste heltal med det angivna avrundningsläget.

Round(NFloat, Int32, MidpointRounding)

Avrundar ett värde till ett angivet antal bråksiffror med standard avrundningsläget (ToEven).

Round(NFloat)

Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs

Avrundar ett värde till närmaste heltal med standard avrundningsläget (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

Parametrar

x
NFloat

Värdet som ska avrundas.

Returer

Resultatet av avrundning x till närmaste heltal med standard avrundningsläget.

Implementeringar

Gäller för

Round(NFloat, Int32)

Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs

Avrundar ett värde till ett angivet antal bråksiffror med standard avrundningsläget (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

Parametrar

x
NFloat

Värdet som ska avrundas.

digits
Int32

Antalet bråktal som x ska avrundas.

Returer

Resultatet av avrundning x till digits bråksiffror med standard avrundningsläget.

Implementeringar

Gäller för

Round(NFloat, MidpointRounding)

Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs

Avrundar ett värde till närmaste heltal med det angivna avrundningsläget.

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

Parametrar

x
NFloat

Värdet som ska avrundas.

mode
MidpointRounding

Läget under vilket x ska avrundas.

Returer

Resultatet av avrundning x till närmaste heltal med hjälp av mode.

Implementeringar

Gäller för

Round(NFloat, Int32, MidpointRounding)

Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs
Källa:
NFloat.cs

Avrundar ett värde till ett angivet antal bråksiffror med standard avrundningsläget (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

Parametrar

x
NFloat

Värdet som ska avrundas.

digits
Int32

Antalet bråktal som x ska avrundas.

mode
MidpointRounding

Läget under vilket x ska avrundas.

Returer

Resultatet av avrundning x till digits bråksiffror med hjälp av mode.

Implementeringar

Gäller för