IFloatingPoint<TSelf>.Round Metod

Definition

Överlagringar

Name Description
Round(TSelf)

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

Round(TSelf, Int32)

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

Round(TSelf, MidpointRounding)

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

Round(TSelf, Int32, MidpointRounding)

Avrundar ett värde till ett angivet antal bråksiffror med det angivna avrundningsläget.

Round(TSelf)

Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs

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

public:
 static override TSelf Round(TSelf x);
public static virtual TSelf Round(TSelf x);
static member Round : 'Self -> 'Self
Public Shared Overrides Function Round (x As TSelf) As TSelf

Parametrar

x
TSelf

Värdet som ska avrundas.

Returer

TSelf

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

Gäller för

Round(TSelf, Int32)

Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs

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

public:
 static override TSelf Round(TSelf x, int digits);
public static virtual TSelf Round(TSelf x, int digits);
static member Round : 'Self * int -> 'Self
Public Shared Overrides Function Round (x As TSelf, digits As Integer) As TSelf

Parametrar

x
TSelf

Värdet som ska avrundas.

digits
Int32

Antalet bråktal som x ska avrundas.

Returer

TSelf

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

Gäller för

Round(TSelf, MidpointRounding)

Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs

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

public:
 static override TSelf Round(TSelf x, MidpointRounding mode);
public static virtual TSelf Round(TSelf x, MidpointRounding mode);
static member Round : 'Self * MidpointRounding -> 'Self
Public Shared Overrides Function Round (x As TSelf, mode As MidpointRounding) As TSelf

Parametrar

x
TSelf

Värdet som ska avrundas.

mode
MidpointRounding

Läget under vilket x ska avrundas.

Returer

TSelf

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

Gäller för

Round(TSelf, Int32, MidpointRounding)

Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs
Källa:
IFloatingPoint.cs

Avrundar ett värde till ett angivet antal bråksiffror med det angivna avrundningsläget.

public:
 static TSelf Round(TSelf x, int digits, MidpointRounding mode);
public static abstract TSelf Round(TSelf x, int digits, MidpointRounding mode);
static member Round : 'Self * int * MidpointRounding -> 'Self
Public Shared Function Round (x As TSelf, digits As Integer, mode As MidpointRounding) As TSelf

Parametrar

x
TSelf

Värdet som ska avrundas.

digits
Int32

Antalet bråktal som x ska avrundas.

mode
MidpointRounding

Läget under vilket x ska avrundas.

Returer

TSelf

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

Gäller för