My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 9: No se controla la división entre cero
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  lin...@gmail.com
Closed:  Nov 2007
Cc:  chon...@gmail.com, pablo.ferulano@gmail.com


 
Project Member Reported by aseg...@gmail.com, Nov 13, 2007
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
Se controla la division por 0.
Status: Fixed

Powered by Google Project Hosting