| Issue 9: | No se controla la división entre cero |
‹ Prev
9 of 9
|
| 1 person starred this issue and may be notified of changes. | Back to list |
|
La división entre cero no se contempla y causa que se tire una excepción.
What steps will reproduce the problem?
1. Ingresar un número cualquiera
2. Ingresar dividido (/)
3. Ingresar 0
4. Presionar =
What is the expected output? What do you see instead?
La aplicación tira una excepción. La calculadora debería chequear que no se
divida entre 0 e indicar la situación con un mensaje.
Please use labels and text to provide additional information.
Caused by: java.lang.ArithmeticException: Division by zero
at java.math.BigDecimal.divide(BigDecimal.java:1569)
at ucucalc.engine.Calculator.Operar(Calculator.java:262)
at ucucalc.engine.Calculator.equalsButtonPressed(Calculator.java:139)
at ucucalc.UcucalcView.btnIgualPress(UcucalcView.java:886)
... 32 more
Nov 14, 2007
Project Member
#1
lin...@gmail.com
Status:
Fixed
|
||||||||||