Пример #1
0
 /// <summary>
 /// Cast nullable <see cref="double"/> to <see cref="string"/> with specified precision.
 /// </summary>
 /// <param name="number"></param>
 /// <param name="digits"></param>
 /// <returns></returns>
 public static string CastToString(this double?number, int digits) => StringConv.DoubleToString(number, digits);
Пример #2
0
 /// <summary>
 /// Convert nullable <see cref="double"/> to <see cref="string"/> with specified precision.
 /// </summary>
 /// <param name="num"></param>
 /// <param name="digits"></param>
 /// <returns></returns>
 public static string ToString(double?num, int digits) => StringConv.DoubleToString(num, digits);
Пример #3
0
 /// <summary>
 /// Cast nullable <see cref="double"/> to <see cref="string"/>.
 /// </summary>
 /// <param name="number"></param>
 /// <returns></returns>
 public static string CastToString(this double?number) => StringConv.DoubleToString(number);
Пример #4
0
 /// <summary>
 /// Convert nullable <see cref="double"/> to <see cref="string"/>.
 /// </summary>
 /// <param name="num"></param>
 /// <returns></returns>
 public static string ToString(double?num) => StringConv.DoubleToString(num);