Single.Round 메서드

정의

오버로드

Round(Single)

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

Round(Single, Int32)

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

Round(Single, MidpointRounding)

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

Round(Single, Int32, MidpointRounding)

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

Round(Single)

Source:
Single.cs
Source:
Single.cs
Source:
Single.cs

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

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

매개 변수

x
Single

반올림할 값입니다.

반환

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

구현

적용 대상

Round(Single, Int32)

Source:
Single.cs
Source:
Single.cs
Source:
Single.cs

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

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

매개 변수

x
Single

반올림할 값입니다.

digits
Int32

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

반환

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

구현

적용 대상

Round(Single, MidpointRounding)

Source:
Single.cs
Source:
Single.cs
Source:
Single.cs

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

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

매개 변수

x
Single

반올림할 값입니다.

mode
MidpointRounding

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

반환

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

구현

적용 대상

Round(Single, Int32, MidpointRounding)

Source:
Single.cs
Source:
Single.cs
Source:
Single.cs

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

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

매개 변수

x
Single

반올림할 값입니다.

digits
Int32

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

mode
MidpointRounding

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

반환

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

구현

적용 대상