What am I doing wrong here - canFind with iota is not working
Kingsley via Digitalmars-d
digitalmars-d at puremagic.com
Thu Feb 26 02:55:42 PST 2015
float oneDegree = (PI / 180.0);
float first = -(oneDegree * 10.0);
float second = (oneDegree * 10.0);
float step = 0.000001;
float[] r = iota(first,second,step).array;
writeln(r);
float item = 0.174531;
writeln(r.canFind(item));
// returns false for canFind - even though that float is in the
array ???
More information about the Digitalmars-d
mailing list