Method CalculateLength
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
CalculateLength(sbyte)
Calculates the length of string representation of given number in base 10 (including sign, if present).
public static int CalculateLength(this sbyte num)
Parameters
num
sbyteNumber to calculate the length of.
Returns
- int
Calculated number length.
CalculateLength(byte)
Calculates the length of string representation of given number in base 10 (including sign, if present).
public static int CalculateLength(this byte num)
Parameters
num
byteNumber to calculate the length of.
Returns
- int
Calculated number length.
CalculateLength(short)
Calculates the length of string representation of given number in base 10 (including sign, if present).
public static int CalculateLength(this short num)
Parameters
num
shortNumber to calculate the length of.
Returns
- int
Calculated number length.
CalculateLength(ushort)
Calculates the length of string representation of given number in base 10 (including sign, if present).
public static int CalculateLength(this ushort num)
Parameters
num
ushortNumber to calculate the length of.
Returns
- int
Calculated number length.
CalculateLength(int)
Calculates the length of string representation of given number in base 10 (including sign, if present).
public static int CalculateLength(this int num)
Parameters
num
intNumber to calculate the length of.
Returns
- int
Calculated number length.
CalculateLength(uint)
Calculates the length of string representation of given number in base 10 (including sign, if present).
public static int CalculateLength(this uint num)
Parameters
num
uintNumber to calculate the length of.
Returns
- int
Calculated number length.
CalculateLength(long)
Calculates the length of string representation of given number in base 10 (including sign, if present).
public static int CalculateLength(this long num)
Parameters
num
longNumber to calculate the length of.
Returns
- int
Calculated number length.
CalculateLength(ulong)
Calculates the length of string representation of given number in base 10 (including sign, if present).
public static int CalculateLength(this ulong num)
Parameters
num
ulongNumber to calculate the length of.
Returns
- int
Calculated number length.