std::numeric_limits<T>:: round_error
From cppreference.net
<
cpp
|
types
|
numeric limits
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type support
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
std::numeric_limits
| Static constants | ||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
|
numeric_limits::round_error
|
||||
| Helper types | ||||
|
static
T round_error
(
)
throw
(
)
;
|
(C++11 이전) | |
|
static
constexpr
T round_error
(
)
noexcept
;
|
(C++11 이후) | |
ISO 10967에 정의된 대로 가능한 가장 큰 반올림 오차를 ULP(단위 최하위 자리) 단위로 반환합니다. 이 값은 0.5 (가장 가까운 자리수로 반올림)부터 1.0 (0 또는 무한대로 반올림)까지 변동할 수 있습니다. 이는 std:: numeric_limits < T > :: is_integer == false 인 경우에만 의미가 있습니다.
반환값
T
|
std:: numeric_limits < T > :: round_error ( ) |
| /* 비전문화 */ | T ( ) |
| bool | false |
| char | 0 |
| signed char | 0 |
| unsigned char | 0 |
| wchar_t | 0 |
| char8_t (C++20 이후) | 0 |
| char16_t (C++11 이후) | 0 |
| char32_t (C++11 이후) | 0 |
| short | 0 |
| unsigned short | 0 |
| int | 0 |
| unsigned int | 0 |
| long | 0 |
| unsigned long | 0 |
| long long (C++11 이후) | 0 |
| unsigned long long (C++11 이후) | 0 |
| float | 0.5F |
| double | 0.5 |
| long double | 0.5L |
참고 항목
|
[static]
|
해당 타입이 사용하는 반올림 스타일을 식별합니다
(public static member constant) |