Quote Originally Posted by Yvesmazzon View Post
Hello all,
if I have a variable like 4557 I would like the results to become 4560 because the last digit is higher than 5 on the other end if I have a variable like 4554 the last digit is less than 5 so the variable remains 4554.
Regards,
Yves
var = var * 10
say calculation arrives at 45576
var = var +5
var = var / 10
answer 4558

Norm