mirror of https://github.com/ogoun/Zero.git
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.
19 lines
460 B
19 lines
460 B
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);
|
|
}
|
|
}
|
|
}
|