Ask Your Question
0

Whats the value of FLT_EPSILON

asked 2014-01-28 08:04:10 -0600

AdityaSastry gravatar image

What is the value of this constant in the background segmentation using Mixture of gaussians file in the video module's section. I tried grep in that directory but it resulted in nothing. I just find it curious why something so related to the file is not placed in that directory !

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-01-28 08:28:55 -0600

Nghia gravatar image

updated 2014-01-28 08:31:11 -0600

On Linux, in /usr/lib/gcc/x86_64-linux-gnu/4.8/include/float.h it has

#define FLT_EPSILON __FLT_EPSILON__

However if you try to grep for __FLT_EPSILON__ you won't find anything. Somehow gcc just knows.

cout << FLT_EPSILON << endl;

returns

1.19209e-07
edit flag offensive delete link more

Comments

claw gravatar imageclaw ( 2014-11-29 18:33:38 -0600 )edit

Question Tools

Stats

Asked: 2014-01-28 08:04:10 -0600

Seen: 4,002 times

Last updated: Jan 28 '14