Hi..
I want an integer to be multiples of 10,100,1000 and so on...
For eg double val = 35 then I want int 40
val = 357 then I want int val = 400
val = 245,567 then I want int val = 300,000
val = 245,567.986 then also I want int = 300,000
Is there anything in C# that can help in generating these integer
Basic logic that I can think is : Extract the first integer , add 1 to it. Count the total number of digits and add zeros (totalno -1 ).
Is there any better way ?
I want to assign these values to the chart axis. I am trying to dynamically create the axis label values based on datapoints of the charts.