Graph x-axis values
Hi , i'm looking for some algorithm that returns nice ticks on a xasixrounded on 10fe i have values16678792i want to get all the values 0-10-20....100so rounded at 10 or 5greetings Sven
[277 byte] By [
scifoa] at [2007-9-28 18:48:25]

Here is the method:public static int compute(int argument, int d){ return argument%d == 0 ? argument : (argument/d + 1)*d;}Now, you can call the method for 10: int k = compute(123, 10);Armen