Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 아펠가모 선릉
- c# scv
- 관심지향프로그래밍
- 스페인 준비물
- db index
- 마드리드
- 코틀린
- 코프링
- 아펠가모
- HTTP #웹기술
- sprintboot
- Srping AOP
- 아펠가모선릉
- 스페인
- kopring
- 400에러
- 그라나다
- 스프링 AOP
- 코틀린 함수
- Kotlin
- http상태코드
- elk
- kotiln
- b-tree index
- git명령어
- 본식후기
- 세비야
- HTTP
- @Component
- 바르셀로나
Archives
- Today
- Total
끄적이는 메모장
[C++] nermeric_limits 본문
반응형
# nermeric_limits
class template으로
특정 플랫폼에서 정수 혹은 부동 소수점의 type에 대한 정보를 제공함
ex)
std::numeric_limits<int>::min() // -2147483648
std::numeric_limits<int>::max() // 2147483647
Member
min() : type에 대한 최소값을 반환해줌
max() : type에 대한 최대값을 반환해줌
등...
자세히(https://msdn.microsoft.com/ko-kr/library/c707ct0t.aspx)
denorm_min | Returns the smallest nonzero denormalized value. |
digits | Returns the number of radix digits that the type can represent without loss of precision. |
digits10 | Returns the number of decimal digits that the type can represent without loss of precision. |
epsilon | Returns the difference between 1 and the smallest value greater than 1 that the data type can represent. |
has_denorm | Tests whether a type allows denormalized values. |
has_denorm_loss | Tests whether loss of accuracy is detected as a denormalization loss rather than as an inexact result. |
has_infinity | Tests whether a type has a representation for positive infinity. |
has_quiet_NaN | Tests whether a type has a representation for a quiet not a number (NAN), which is nonsignaling. |
has_signaling_NaN | Tests whether a type has a representation for signaling not a number (NAN). |
infinity | The representation for positive infinity for a type, if available. |
is_bounded | Tests if the set of values that a type may represent is finite. |
is_exact | Tests if the calculations done on a type are free of rounding errors. |
is_iec559 | Tests if a type conforms to IEC 559 standards. |
is_integer | Tests if a type has an integer representation. |
is_modulo | Tests if a type has a modulo representation. |
is_signed | Tests if a type has a signed representation. |
is_specialized | Tests if a type has an explicit specialization defined in the template class numeric_limits . |
lowest | Returns the most negative finite value. |
max | Returns the maximum finite value for a type. |
max_digits10 | Returns the number of decimal digits required to ensure that two distinct values of the type have distinct decimal representations. |
max_exponent | Returns the maximum positive integral exponent that the floating-point type can represent as a finite value when a base of radix is raised to that power. |
max_exponent10 | Returns the maximum positive integral exponent that the floating-point type can represent as a finite value when a base of ten is raised to that power. |
min | Returns the minimum normalized value for a type. |
min_exponent | Returns the maximum negative integral exponent that the floating-point type can represent as a finite value when a base of radix is raised to that power. |
min_exponent10 | Returns the maximum negative integral exponent that the floating-point type can represent as a finite value when a base of ten is raised to that power. |
quiet_NaN | Returns the representation of a quiet not a number (NAN) for the type. |
radix | Returns the integral base, referred to as radix, used for the representation of a type. |
round_error | Returns the maximum rounding error for the type. |
round_style | Returns a value that describes the various methods that an implementation can choose for rounding a floating-point value to an integer value. |
signaling_NaN | Returns the representation of a signaling not a number (NAN) for the type. |
tinyness_before | Tests whether a type can determine that a value is too small to represent as a normalized value before rounding it. |
traps | Tests whether trapping that reports on arithmetic exceptions is implemented for a type. |
반응형
'C, C++, C# > C++ 공부' 카테고리의 다른 글
[C++] back_inserter / front_inserter (0) | 2018.06.08 |
---|---|
[C++] std::transform (0) | 2018.06.08 |
[C++] std::set_intersection (0) | 2018.06.08 |
[C++11] tuple (0) | 2018.06.07 |
[C++11] std::all_of, / std::any_of / std::none_of (0) | 2018.06.07 |