What happens if adding a very big value and a very small value?

Joined
Nov 10, 2009
Messages
2
Reaction score
0
For example: 3e19 + 0.0001

Will this code be excuted really?

I watch a variable in GDB, but can not stop when this is excuted.

double a = 3e19;
double b = 0.0001;
a = a + b;

awatch a
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top