Added check that scan goes from -x to x

Can you use `FLT_EPSILON` from `<cfloat>` here? See:

http://www.cplusplus.com/reference/cfloat/