Hello Team,
I have got a special rounding to do and after many search performed in TekTips, i could not come across a solution. Can you please help me with the problem below;
After a calculation has been performed in my coding part, the result are displayed in a textbox. I DO NOT want the decimals to appear, all i need is that the result is rounded to the next whole number. The moment the value is over .0 something, it should be rounded to the next whole number. Please see example below;
Result being displayed ----> What i want to get
8.9 ------------------------------> 9
8.1 ------------------------------> 9
8.487 ----------------------------> 9
8.091 ----------------------------> 9
1.254 ----------------------------> 2
1.014 ----------------------------> 2
1.9745 ---------------------------> 2
0.0021 ---------------------------> 1
Looking ahead to hear your solutions team,
Thanks a lot for your help,
Kind regards.
Salim
I have got a special rounding to do and after many search performed in TekTips, i could not come across a solution. Can you please help me with the problem below;
After a calculation has been performed in my coding part, the result are displayed in a textbox. I DO NOT want the decimals to appear, all i need is that the result is rounded to the next whole number. The moment the value is over .0 something, it should be rounded to the next whole number. Please see example below;
Result being displayed ----> What i want to get
8.9 ------------------------------> 9
8.1 ------------------------------> 9
8.487 ----------------------------> 9
8.091 ----------------------------> 9
1.254 ----------------------------> 2
1.014 ----------------------------> 2
1.9745 ---------------------------> 2
0.0021 ---------------------------> 1
Looking ahead to hear your solutions team,
Thanks a lot for your help,
Kind regards.
Salim