You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel.Qdrant/FloatExtensions.cs

19 lines
460 B

2 years ago
using System.Globalization;
namespace ZeroLevel.Qdrant
{
public static class NumericExtensions
{
private static NumberFormatInfo nfi = new NumberFormatInfo() { NumberDecimalSeparator = "." };
public static string ConvertToString(this float num)
{
return num.ToString(nfi);
}
public static string ConvertToString(this double num)
{
return num.ToString(nfi);
}
}
}

Powered by TurnKey Linux.