I have run into weird situation with string representation of double.PositiveInfinity and NegativeInfinity in Windows Server 2016. Our tester found that my program (written in C# .NET v.4) generated a symbol '∞' instead of "Infinity" that it was supposed to do in the culture "en-US". That prevented a further processing of the data. The Region and Language settings in Control Panel show the only configured culture: English (United States). I quickly made a little app that checked and dumped the culture information to text file and handed the app to the tester to run on the machine. This is what I got from him:
2018-04-23 15:14:25
Current culture:
Symbol = 'en-US'; Native Name = 'English (United States)'; English Name = 'English (United States)';
Positive Infinity string: ∞;
Negative Infinity string: -∞;
NaN string: NaN
On any other computer (Windows 7, Windows Server 2012) I get:
Current culture:
Symbol = 'en-US'; Native Name = 'English (United States)'; English Name = 'English (United States)';
Positive Infinity string: Infinity;
Negative Infinity string: -Infinity;
NaN string: NaN
Does anybody know if there is place in Windows settings that overrides culture's default representation of the Infinity? Or is it Windows 2016 hiccup?