i am trying to round a number to next multiple of 10 with condition i.e.
for example if number is 1230.56 then it should round off to 1230
but if the unit number is more than zero i.e. 1231.56 then it should round off to 1240.
that means the main number should round off to next multiple of 10 only if unit number is equal to or more than 1.
example 120.11 should round off to 120
121 to 130
120.99 to 120
119 to 120 and so on
for example if number is 1230.56 then it should round off to 1230
but if the unit number is more than zero i.e. 1231.56 then it should round off to 1240.
that means the main number should round off to next multiple of 10 only if unit number is equal to or more than 1.
example 120.11 should round off to 120
121 to 130
120.99 to 120
119 to 120 and so on