Skip to content
Snippets Groups Projects
Commit 72eef11c authored by Vesa Oikonen's avatar Vesa Oikonen
Browse files

double -> float

parent e20b491d
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ int floatMatchRel( ...@@ -63,7 +63,7 @@ int floatMatchRel(
if(isnan(v1) || isnan(v2)) return 0; if(isnan(v1) || isnan(v2)) return 0;
if(v1==v2) return 1; if(v1==v2) return 1;
if(isnan(lim)) return 0; if(isnan(lim)) return 0;
double mean; float mean;
mean=0.5*(v1+v2); if(!isnormal(mean)) return 0; mean=0.5*(v1+v2); if(!isnormal(mean)) return 0;
if(fabsf((v1-v2)/mean)<=lim) return 1; if(fabsf((v1-v2)/mean)<=lim) return 1;
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment