decimales en VB

Iniciado por kakinets, 2 Junio 2007, 01:29 AM

0 Miembros y 1 Visitante están viendo este tema.

kakinets

Como era la funcion para respectar los decimales en Visual Basic?? osea q cuando sume 3,15 + 1 me de 4,15 no 415.. entiendes???

<?BRoWLi?>

Dim variable As Single
Dim variable2 As Single
Dim variablef As Single


variable = 5.6
variable2 = 9.5
variablef = variable + variable2
Text1 = variablef


para doble punto flotante como tu pones en tu ejemplo, declara como double
Si TRaTaS D SeR JusTo SoLo Es JuSTo EL CoRaZóN, LoS DeMaS OrGaNoS TRaTaRaN De KiTaRLe La RaZoN - DobleV
Piratas.com.es