floating point precision

Discussion created by spectral on Apr 6, 2011
Latest reply on Jul 11, 2018 by mirh


In my current kernel I use floating point values, but I think I got precision problems...

by example, I use an 'epsilon' defined as

#define EPSILON 1e-4 and play with values like 500.f etc....

I'm not sure how I can improve this ? Do you have any council ? ideas ?