floating point error: overflow?

C

C. Sengstock

Hi,

i´ve got an iteration with random generated floating point numbers.
During the iteration process sometimes the programm stops with the error:
"floating point error: overflow"

Is the number out of range? what does it exactly mean?

Thanks, Chris
 
M

Mike Wahler

C. Sengstock said:
Hi,

i´ve got an iteration with random generated floating point numbers.
During the iteration process sometimes the programm stops with the error:
"floating point error: overflow"

Is the number out of range?

Essentially yes.
what does it exactly mean?

You tried to store a representation that is
invalid for a floating point type on your
implementation.

-Mike
 
J

Jack Klein

Essentially yes.


You tried to store a representation that is
invalid for a floating point type on your
implementation.

-Mike

Not even store, necessarily. Just generate.

double d = DBL_MAX;
++d;

....can generate an exception or trap.

BTW, could you start using a proper signature separator?

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 
M

Mike Wahler

Jack Klein said:
Not even store, necessarily. Just generate.

Right. Thanks.
double d = DBL_MAX;
++d;

...can generate an exception or trap.

BTW, could you start using a proper signature separator?

Sure, as soon as I start using a sig.

-Mike
 

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,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top