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

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top