Personally, I found the solution to a post that opened there a week ago, is working for all numbers below 9.00, typing eg 8.99 it calculates 9:00, another value it calculates 5.10 to 9.00, is a standard for stores, but the type 9.00 and 12, nine, nine should be the same, since the 12, would have to be 19.00, and there on. The following algorithm, if someone can help me thank you.
Wow. That is a lot of code for a straightforward mathematical operation. I was able to get it down to four big decimal method calls chained together. The four operations were...
1. Add one to get it to the nearest whole tens digit (so that it can be rounded as a tens digit, instead of rounded as "around the nine").
2. Divide by ten, zero scale, round up, in order to get rid of the unwanted digits.
3. Multiply by ten, to get it back into the tens digit.
4. Subtract one to undo step one.
And this will work for every case that you listed.