How to change NaN string representation in C#?
问题 My program saves a pointcloud to file, where each pointcloud is a Point3D[,] , from the System.Windows.Media.Media3D namespace. This shows a line of the output file (in portuguese): -112,644088741971;71,796623005014;NaN (Não é um número) while I'd like it to be (on order to be correctly parsed afterwards): -112,644088741971;71,796623005014;NaN The block of code that generates the file is here: var lines = new List<string>(); for (int rows = 0; rows < malha.GetLength(0); rows++) { for (int