Exemplo n.º 1
0
 /// <summary>
 /// Cast nullable <see cref="float"/> to <see cref="string"/> with specified precision.
 /// </summary>
 /// <param name="number"></param>
 /// <param name="digits"></param>
 /// <returns></returns>
 public static string CastToString(this float?number, int digits) => StringConv.FloatToString(number, digits);
Exemplo n.º 2
0
 /// <summary>
 /// Convert nullable <see cref="float"/> to <see cref="string"/> with specified precision.
 /// </summary>
 /// <param name="num"></param>
 /// <param name="digits"></param>
 /// <returns></returns>
 public static string ToString(float?num, int digits) => StringConv.FloatToString(num, digits);
Exemplo n.º 3
0
 /// <summary>
 /// Cast nullable <see cref="float"/> to <see cref="string"/>.
 /// </summary>
 /// <param name="number"></param>
 /// <returns></returns>
 public static string CastToString(this float?number) => StringConv.FloatToString(number);
Exemplo n.º 4
0
 /// <summary>
 /// Convert nullable <see cref="float"/> to <see cref="string"/>.
 /// </summary>
 /// <param name="num"></param>
 /// <returns></returns>
 public static string ToString(float?num) => StringConv.FloatToString(num);