From ec1be71be46768be5e4f136ce3d333d4d3f9f137 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 28 Dec 2014 14:00:16 +0100 Subject: [PATCH] Debugging an elusive Mono bug in Double.Parse (2) --- Site5/Pages/v5/Financial/RequestCashAdvance.aspx.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Site5/Pages/v5/Financial/RequestCashAdvance.aspx.cs b/Site5/Pages/v5/Financial/RequestCashAdvance.aspx.cs index f43d6161..f1890847 100644 --- a/Site5/Pages/v5/Financial/RequestCashAdvance.aspx.cs +++ b/Site5/Pages/v5/Financial/RequestCashAdvance.aspx.cs @@ -62,12 +62,8 @@ namespace Swarmops.Frontend.Pages.v5.Financial { // The data has been validated client-side already. We'll throw unfriendly exceptions if invalid data is passed here. - // MONO BUG: Need to re-set the current culture for parsing to work properly. - - AuthenticationData authData = CommonV5.GetAuthenticationDataAndCulture (HttpContext.Current); - double amount = this.TextAmount.Value; - Int64 amountCents = (Int64) amount*100; + Int64 amountCents = (Int64) (amount*100.0); string description = this.TextPurpose.Text;