Curso 42 VB.NET Redondeo Numeros


En este tutorial aprenderemos a reondear numeros siguiendo las reglas de redondeo y tambien si ellas .

Video Tutoriales

Codigo fuente

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click 'REDONDEO 'SI LOS NUMERO S SON MAYORES A 5 ---> +1 'SI LOS NUMEROS SON MENORES A 5 ---> SE MANTIENE 'SI LOS NUMEROS SON IGUALES A 5 'PAR --> SE MANTIENE 'IMPAR -->+1 'MATH MATEMATICAS ROUND REDONDEO ' MsgBox(Math.Round(0.55, 1)) 'DIGAMOS NO QUIERES SEGUIR LAS REGLAS 'MENORES ' MsgBox(Math.Floor(0.9)) 'MAYOR MsgBox(Math.Floor(0.9) + 1) End Sub

No hay comentarios :

Publicar un comentario

Seguidores