I am modifiying an ULP that adapts all drill sizes to Olimex ones but
I want to check if the drill size is already and olimex standard.
So I want to check the value of "rval" against the standard values, so
have made that line ( formatting has been los a little )
but i get an error when running the ULP, have I made something wrong in
the
if.....
line
code fragment starts-------
real rval=isdrill// first we check if the drill value is an Olimex
standard, if so we do not modify it
if (rval!=3.3 || rval!=2.1 || rval!=1.5 || rval!=1.3 || rval!=1.1 ||
rval!=1.0 || rval!=0.9 || rval!=0.7) {
rval = round((isdrill+round_offset) * 10.0) / 10.0; // round value
}
code fragment end-------
Thanks in advance