As John Skeet explained, you must specify the culture used to format the string :
var str = GetNumber().ToString(System.Globalization.CultureInfo.InvariantCulture);
Itβs good practice to always use the ToString overload in which you specify the culture. Otherwise, .NET use the current Culture stream, which will write different strings for output according to the PC locale ...
Eilistraee Oct 06 '10 at 7:13 2010-10-06 07:13
source share