You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,6 +62,42 @@ public interface IQuantity<UnitType> : IQuantity where UnitType : Enum
60
62
/// <param name="unit">Unit representation to use.</param>
61
63
/// <returns>String representation.</returns>
62
64
stringToString(UnitTypeunit);
65
+
66
+
/// <summary>
67
+
/// Get string representation of value and unit. Using two significant digits after radix.
68
+
/// </summary>
69
+
/// <param name="unit">Unit representation to use.</param>
70
+
/// <returns>String representation.</returns>
71
+
/// <param name="provider">Format to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
/// <param name="unit">Unit representation to use.</param>
78
+
/// <param name="significantDigitsAfterRadix">The number of significant digits after the radix point.</param>
79
+
/// <returns>String representation.</returns>
80
+
/// <param name="provider">Format to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
/// <param name="unit">Unit representation to use.</param>
87
+
/// <param name="format">String format to use. Default: "{0:0.##} {1} for value and unit abbreviation respectively."</param>
88
+
/// <param name="args">Arguments for string format. Value and unit are implictly included as arguments 0 and 1.</param>
89
+
/// <returns>String representation.</returns>
90
+
/// <param name="provider">Format to use for localization and number formatting. Defaults to <see cref="GlobalConfiguration.DefaultCulture" /> if null.</param>
0 commit comments