Table of Contents

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 sbyte

Number 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 byte

Number 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 short

Number 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 ushort

Number 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 int

Number 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 uint

Number 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 long

Number 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 ulong

Number to calculate the length of.

Returns

int

Calculated number length.