Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating point precisions and std::numeric_limits digits, exponents, min/lowest members. #438

Open
abhi-k9 opened this issue Oct 20, 2024 · 1 comment

Comments

@abhi-k9
Copy link

abhi-k9 commented Oct 20, 2024

Channel

"C++Weekly" request.

Topics

  1. Floating point precision
  2. std::numeric_limits<T>::digits, std::numeric_limits<T>::digits10, std::numeric_limits<T>::max_digits10 differences.
  3. std::numeric_limits<T>::min, std::numeric_limits<T>::lowest differences.
  4. std::numeric_limits<T>::min_exponent, std::numeric_limits<T>::min_exponent10, std::numeric_limits<T>::max_exponent, std::numeric_limits<T>::max_exponent10 differences if time permits.

Length

Long form if need be, but could possibly be a short one.

@Dharmesh946
Copy link

NB floating point accuracy is not limited to these types but also to the kind of operations performed, floating point promotion and the underlying HW implementation of the types (typically, it can have 80 bits for intermediate computation, which can lead to unexpected behaviors).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants