Label4.Text = CDec(TextBox1.Text) * 115
Label5.Text = CInt(Label4.Text)
I want Label4
to show the exact number and Label5
to show that number without decimals and rounded up.
If I type 11,1 in the textbox, Label4
= 1276,5 and Label5
= 1276 (why rounded down?).
If I type 11,3, Label4
= 1299,5 and Label5
= 1300 (perfect).
11,5 is rounded down; 11,7 is rounded up...and on so on.
How can I make it so ,5 is always rounded up? (I am working on money-based calculations.)