std:: float_round_style
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
| Static constants | ||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
| Helper types | ||||
|
float_round_style
|
||||
|
헤더에 정의됨
<limits>
|
||
|
enum
float_round_style
{
round_indeterminate
=
-
1
,
|
||
std::float_round_style
타입의 열거형 상수들은 부동소수점 산술 연산이 수행될 때, 표현식의 결과가 부동소수점 타입 객체에 저장되는 경우 사용되는 반올림 스타일을 나타냅니다.
열거형 상수
| 열거자 | 의미 |
| std::round_indeterminate | 반올림 스타일을 결정할 수 없음 |
| std::round_toward_zero | 영 방향 반올림 |
| std::round_to_nearest | 가장 가까운 표현 가능한 값으로 반올림 |
| std::round_toward_infinity | 양의 무한대 방향 반올림 |
| std::round_toward_neg_infinity | 음의 무한대 방향 반올림 |
참고 항목
|
[static]
|
해당 타입이 사용하는 반올림 스타일을 식별함
(public static member constant) |
|
부동소수점 반올림 방향
(macro constant) |