Rounding up. One of the variants of the rounding algorithm.

Rounds each decimal place from the least significant digit. So, if it is greater than 5, then 1 goes into a larger digit.

Call:

double tsround_best(dvalue, int numpos);


Here:

dvalue - the value to be rounded.

numpos - number of decimal places.