diff --git a/VectoCommon/VectoCommon/Utils/SI.cs b/VectoCommon/VectoCommon/Utils/SI.cs index 425caecc90e411f38edb3b2f84a81c2526b0486b..185f385ba0bff4ac08b6c2c0cd993658cd875fb1 100644 --- a/VectoCommon/VectoCommon/Utils/SI.cs +++ b/VectoCommon/VectoCommon/Utils/SI.cs @@ -2295,7 +2295,7 @@ namespace TUGraz.VectoCommon.Utils public string ToXMLFormat(uint? decimals = null) { decimals = decimals ?? 2; - return Val.ToString("F" + decimals.Value); + return Val.ToString("F" + decimals.Value, CultureInfo.InvariantCulture); } public class EqualityComparer<T> : IEqualityComparer<T> where T : SI @@ -2306,6 +2306,7 @@ namespace TUGraz.VectoCommon.Utils { _precision = precision; } + public bool Equals(T x, T y) { return x.IsEqual(y.Value(), _precision);