Okay so here's my program design: http://puu.sh/11gFY
And here is the code for the math that is to be rounded:
Private Sub EnterBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EnterBtn.Click FlightTimeResultLbl.Text = (2 * VelocityBox.Text * 0.7071067812) / 9.8 DistanceResultLbl.Text = VelocityBox.Text * FlightTimeResultLbl.Text * 0.7071067812 End Sub
Basically. The user enters the velocity and the code calculates the distance and flight time.
I need it rounded to 2 decimal places. Im not sure.
I looked up Math.round but i wasn't sure where to place it or how to round it off?
Many thanks <3