Answers for "get number length c#"

C#
2

how to find how much digits in number c#

Math.Floor(Math.Log10(n) + 1);
//find how much digit in number
//decimal point will not be added
Posted by: Guest on October-21-2020
0

c# check lenght

private static readonly char[] Delimiters = " ".ToCharArray();
private static readonly string[] EmptyArray = new string[0];

public static string[] SplitOnMultiSpaces(string text)
{
    if (string.IsNullOrEmpty(text))
    {
        return EmptyArray;
    }

    return text.Split(Delimiters, StringSplitOptions.RemoveEmptyEntries);
}
Posted by: Guest on March-31-2022

C# Answers by Framework

Browse Popular Code Answers by Language