Skip to content
Snippets Groups Projects
Commit a9be3cea authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Revert "Fixed #249 - floating point error"

This reverts commit 250c9fdf.
parent 250c9fdf
No related branches found
No related tags found
No related merge requests found
...@@ -411,9 +411,7 @@ public class NewPaymentController extends BaseController implements Styleable ...@@ -411,9 +411,7 @@ public class NewPaymentController extends BaseController implements Styleable
} }
int amount = 0; int amount = 0;
amountText = amountText.replace(",", "."); amount = (int)(Double.parseDouble(amountText.replace(",", ".")) * 100);
amountText = amountText.replace(".", "");
amount = Integer.parseInt(amountText);
if(isPayment) if(isPayment)
{ {
amount = -amount; amount = -amount;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment