Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6003389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:06:52+00:00 2026-05-23T01:06:52+00:00

numeric_limits::espilon returns the difference between 1 and the next double. So, should I understand

  • 0

numeric_limits::espilon returns the difference between 1 and the next double. So, should I understand that the distance between two adjacent doubles is not always the same, for instance between 2 and the next double?

And if yes could I have a piece of explanation ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:06:53+00:00Added an answer on May 23, 2026 at 1:06 am

    The “density” of floating-point numbers decreases a lot as you get farther away from zero.

    This is because IEEE floating-point is stored essentially as scientific notation, so range is favored over uniform precision. (If it was uniform precision, it would be fixed-point, not floating-point.)

    In other words, numbers are stored in the form Significand * 2exponent, so if the exponent gets large, a small change in the significand produces a large change in the number (and vice-versa).

    So no, you can’t assume that the difference between 2 and the next double is the same as epsilon; it isn’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I thought that the correct type to use to store the difference between pointers
What's the best way to use NaNs in C++? I found std::numeric_limits<double>::quiet_NaN() and std::numeric_limits<double>::signaling_NaN()
Why double.Epsilon != std::numeric_limits<double>::min() ? On my PC: double.Epsilon == 4.9406564584124654E-324 and is defined
I have no problem converting normal double values, but I can't convert numeric_limits<double>::max( )
I have double (or float) variables that might be empty, as in holding no
At first one might think std::numeric_limits<size_t>::max() , but if there was an object that
I know that ES_NUMBER exists to limit CreateWindowEx to numeric input only, is there
I have a numeric vector, it contains patches of elements that are repeating, something
In the C++ Standard Library the value std::numeric_limits<T>::max() is specified as a function. Further
equivalent to log10(2^24) ≈ 7.225 decimal digits Wikipedia Precision: 7 digits MSDN 6 std::numeric_limits<float>::digits10

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.