on-internet
← Community

How many distinct floating-point numbers in a specific range?

Stack Overflow ·

How many rep­re­sentable floats are there be­tween 0.0 and 0.5? And how many representable floats are there between 0.5 and 1.0? I'm more interested in the math behind it, and I need the answer for floats and doubles.

Comments

Sign in or sign up to comment and upvote.

No comments yet.