All variable, in the following "for loop exemple" except nbval are double type.
I have a problem with the condition "val <= valmax". When val is increment by the step value and equal to valmax the for loop break has if the val was greater than valmax. How can i correct this problem?
for (nbval = 0, val = val0; val <= valmax ; val += step)
{
values[nbval] = val;
nbval++;
}
Thank you and please excuse my english!!!
I have a problem with the condition "val <= valmax". When val is increment by the step value and equal to valmax the for loop break has if the val was greater than valmax. How can i correct this problem?
for (nbval = 0, val = val0; val <= valmax ; val += step)
{
values[nbval] = val;
nbval++;
}
Thank you and please excuse my english!!!