Soy nuevo en la programación y tengo algunos problemas con el error de desbordamiento de Cint. Cada vez que el valor alcanza 100.000+ obtengo un error de desbordamiento de Cint. Este fue un ejercicio de práctica en mi introducción a la clase de programación. Por lo que puedo ver, lo codifiqué exactamente como se hizo en la práctica, pero la práctica muestra el uso de valores tan altos como 300,000. ¿Alguien puede explicar lo que podría estar haciendo mal?Error de desbordamiento de Cint cuando el valor excede 100.000+
<script language="VBscript">
Option Explicit
DIM numberofshifts, totalshift1, totalshift2, _
totalshift3, grandtotal, shiftaverage
numberofshifts=3
totalshift1 = Inputbox("How many widgets during the first shift")
totalshift2 = Inputbox("How many widgets during the second shift")
totalshift3 = Inputbox("How many widgets during the third shift")
grandtotal = cint(totalshift1) + totalshift2 + totalshift3
shiftaverage = grandtotal/numberofshifts
Document.write "The Total of the Three Shifts is " & grandtotal
Document.write "<br>The Average of the Three Shifts is " & shiftaverage
</script>
Para referencia: [Tipos de datos de VBScript] (http://msdn.microsoft.com/en-us/library/9e7a57cf%28VS.84%29.aspx) –