Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/01/2011, 08:20
arcangeltigre
 
Fecha de Ingreso: noviembre-2009
Mensajes: 3
Antigüedad: 14 años, 6 meses
Puntos: 0
Redondear decimales

hola, estoy creando un aplicacion para generar facturas y cuando ungreso la cantidad sin iva me aparcen decimales,

txttotal1.Text = Val(txtventa.Text) * Val(txtretirar.Text)
txtneto.Text = Val(txtneto) + Val(txttotal1.Text)
txtiva.Text = Val(txtneto.Text) * 19 / 100
txttotal.Text = Val(txtneto.Text) + Val(txtiva.Text)

en el txtiva me aparecen los decimales y lo que necesito es un codigo para redondear en numeros con decimal a enteros si alguien me puede ayudar se lo agredeseria.