FP epsilon compare without library function