Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #26  
Old 10-20-2011, 10:35 PM
41Sqn_Banks 41Sqn_Banks is offline
Approved Member
 
Join Date: Oct 2007
Posts: 644
Default

Quote:
Originally Posted by Ataros View Post
Thank you very much for the fix!

Was it a regional settings issue like decimal comma or data format, anything we need to know?
For some reason I was unable to post it at sukhoi, thanks for posting the update. Yes I missed to parse 2 values in with invariant culture number format. This caused the flight size to be 0 so no flight was available in the mission.

If you want to convert a string to a double value, for example
Code:
string inputString = "0.5";
you should use
Code:
double outputDouble;
double.TryParse(inputString, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture.NumberFormat, out outputDouble);
If you want to convert a double value to a string you should use
Code:
double someDoubleValue = 0.5;
someDoubleValue.ToString(System.Globalization.CultureInfo.InvariantCulture.NumberFormat)
If you don't use the InvariantCulture the default language culture of your system (or application) is used. Depending on this language culture the expected seperator can be "," which causes the parsing to fail if the input string uses "." as seperator. The same goes for the convertion from double to string.

Last edited by 41Sqn_Banks; 10-21-2011 at 08:26 AM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.