IFloatingPoint<TSelf>.Round 메서드

정의

오버로드

Round(TSelf)

기본 반올림 모드(ToEven)를 사용하여 값을 가장 가까운 정수로 반올림합니다.

Round(TSelf, Int32)

기본 반올림 모드(ToEven)를 사용하여 값을 지정된 수의 소수 자릿수로 반올림합니다.

Round(TSelf, MidpointRounding)

지정된 반올림 모드를 사용하여 값을 가장 가까운 정수로 반올림합니다.

Round(TSelf, Int32, MidpointRounding)

지정된 반올림 모드를 사용하여 값을 지정된 소수 자릿수로 반올림합니다.

Round(TSelf)

Source:
IFloatingPoint.cs
Source:
IFloatingPoint.cs
Source:
IFloatingPoint.cs

기본 반올림 모드(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

매개 변수

x
TSelf

반올림할 값입니다.

반환

TSelf

기본 반올림 모드를 x 사용하여 가장 가까운 정수로 반올림한 결과입니다.

적용 대상

Round(TSelf, Int32)

Source:
IFloatingPoint.cs
Source:
IFloatingPoint.cs
Source:
IFloatingPoint.cs

기본 반올림 모드(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

매개 변수

x
TSelf

반올림할 값입니다.

digits
Int32

반올림해야 하는 x 소수 자릿수입니다.

반환

TSelf

기본 반올림 모드를 xdigits 사용하여 소수 자릿수로 반올림한 결과입니다.

적용 대상

Round(TSelf, MidpointRounding)

Source:
IFloatingPoint.cs
Source:
IFloatingPoint.cs
Source:
IFloatingPoint.cs

지정된 반올림 모드를 사용하여 값을 가장 가까운 정수로 반올림합니다.

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

매개 변수

x
TSelf

반올림할 값입니다.

mode
MidpointRounding

반올림해야 하는 x 모드입니다.

반환

TSelf

를 사용하여 mode가장 가까운 정수로 반올림 x 한 결과입니다.

적용 대상

Round(TSelf, Int32, MidpointRounding)

Source:
IFloatingPoint.cs
Source:
IFloatingPoint.cs
Source:
IFloatingPoint.cs

지정된 반올림 모드를 사용하여 값을 지정된 소수 자릿수로 반올림합니다.

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

매개 변수

x
TSelf

반올림할 값입니다.

digits
Int32

반올림해야 하는 x 소수 자릿수입니다.

mode
MidpointRounding

반올림해야 하는 x 모드입니다.

반환

TSelf

를 사용하여 mode소수 자릿수로 digits 반올림 x 한 결과입니다.

적용 대상