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 6: Excepciones con BigDecimals
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  lin...@gmail.com
Closed:  Nov 2007
Cc:  jpand...@gmail.com, chon...@gmail.com


 
Project Member Reported by aseg...@gmail.com, Nov 13, 2007
Trabajar con BigDecimals está tirando excepciones en la conversión de ángulos.

What steps will reproduce the problem?
1. Ingresar 7
2. Seleccionar radianes.


What is the expected output? What do you see instead?
La calculadora debería convertir 7 a radianes, en vez tira una excepción,
se pega abajo:

Caused by: java.lang.ArithmeticException: Non-terminating decimal
expansion; no exact representable decimal result.
        at java.math.BigDecimal.divide(BigDecimal.java:1514)
        at ucucalc.engine.angles.Angles.gradesToRadian(Angles.java:59)
        at ucucalc.engine.Calculator.convertAngleToRadian(Calculator.java:283)
        at ucucalc.UcucalcView.rdbRadianesSelected(UcucalcView.java:950)

Please use labels and text to provide additional information.
Recomiendo por favor cambiar todos los BigDecimals a float (no double!).

 
Nov 13, 2007
Project Member #1 lin...@gmail.com
Se corrigio la excepcion de los BigDecimals.
Status: Fixed

Powered by Google Project Hosting