src/Cassandra/Utils.cs
/// <summary>
/// Fill the zeros to the left
/// </summary>
Fill the zeros to the left
Fill the zeros to the left
public static string FillZeros(int value, int length = 2)
        {
            var textValue = value.ToString();
            if (textValue.Length >= length)
            {
                return textValue;
            }
            return String.Join("", Enumerable.Repeat("0", length - textValue.Length)) + textValue;
        }
public static string FillZeros ( int value , int length = 2 ) { var textValue = value . ToString ( ) ; if ( textValue . Length >= length ) { return textValue ; } return String . Join ( " " , Enumerable . Repeat ( " " , length - textValue . Length ) ) + textValue ; }
Fill the zeros to the left
Fill the zeros to the left
value
int
length
int