How do i get VB to round up a decimal?
Printable View
How do i get VB to round up a decimal?
VB Code:
Private Sub Command1_Click() MsgBox (Round(Text1.Text, "0")) End Sub
Thanks
i don't what Nightwalker meant by that (clarify it for me).. but i would do it this way, tho:
Text1.Text = Round(Val(Text1.Text), 0)
this would round up the value of the txt box to 0 decimal places..