We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceae725 commit d0fde01Copy full SHA for d0fde01
1 file changed
OpenCode/StringExtension/StringExtension.cs
@@ -25,6 +25,20 @@ public static string RemoveTrailingZero(this string input)
25
return input;
26
}
27
28
+ /// <summary>
29
+ ///
30
+ /// </summary>
31
+ /// <param name="input"></param>
32
+ /// <returns></returns>
33
+ public static string TestRemoveTrailingZero(this string input)
34
+ {
35
+ decimal output;
36
+ if (decimal.TryParse(input, out output))
37
+ return output.ToString("G29");
38
+ else
39
+ return input;
40
+ }
41
+
42
/// <summary>
43
/// Returns SHA256 hash of input string
44
/// </summary>
0 commit comments