Created
April 11, 2019 11:18
-
-
Save Josef212/0ae8ab83106f18eaa89de07c44437357 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class Extensions | |
{ | |
public static string TrimDouble(this string temp) | |
{ | |
var value = temp.IndexOf('.') == -1 ? temp : temp.TrimEnd('.', '0'); | |
return value == string.Empty ? "0" : value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment