EPS (実数)
2013年8月21日 (水) 14:31時点におけるimported>MikeCATによる版 (作成)
使用方法
#include <math.h>
#define EPS 1e-7
double a,b;
a<b+EPS /* a<=b */
a+EPS<b /* a<b */
fabs(a-b)<EPS /* a==b */
#include <math.h>
#define EPS 1e-7
double a,b;
a<b+EPS /* a<=b */
a+EPS<b /* a<b */
fabs(a-b)<EPS /* a==b */