Fixes horrible Double.Parse bug that wasn't

This commit is contained in:
Rick Falkvinge
2014-12-28 14:13:44 +01:00
parent ec1be71be4
commit 2372895325
2 changed files with 2 additions and 2 deletions
@@ -139,7 +139,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
double amount = Double.Parse (this.TextAmount.Text, NumberStyles.Number);
// parses in current culture - intentional
Int64 amountCents = (Int64) amount*100;
Int64 amountCents = (Int64) (amount*100);
string description = this.TextPurpose.Text;
@@ -146,7 +146,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
double amount = Double.Parse (this.TextAmount.Text, NumberStyles.Number);
// parses in current culture - intentional
Int64 amountCents = (Int64) amount*100;
Int64 amountCents = (Int64) (amount*100.0);
string description = this.TextPurpose.Text;