I have graph i want that graph it should show in whole number like 20 40 80 100 04 200 250 500 750 1000 like this so how to get this at run time if our result comes 75 then it should display 100 on graph line insted of 70 and like wise if there is
here is the code which i am getting the final like in my answer final max is 850 and i want that is should on graph max value 1000;
int finalmax=(maxone>maxtwo)? maxone:maxtwo;
finalmax=(finalmax>maxthree)?finalmax:maxthree;
You can take any number and round it to the nearest hundred by dividing it by 100 and rounding to the nearest integer and then multiplying by 100.
or…