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
numsbyteNumber 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
numbyteNumber 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
numshortNumber 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
numushortNumber 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
numintNumber 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
numuintNumber 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
numlongNumber 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
numulongNumber to calculate the length of.
Returns
- int
Calculated number length.