NumberExtensions.Format Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

Format(int) Format a number to max 3 significant numbers and a suffix (K or M)
Format(long) Format a number to max 3 significant numbers and a suffix (K or M)
Format(int?) Format a number to max 3 significant numbers and a suffix (K or M)
Format(long?) Format a number to max 3 significant numbers and a suffix (K or M)

Format(int)

Format a number to max 3 significant numbers and a suffix (K or M)

public static string Format(this int number)

Parameters

number
int

The number to format

Returns

string

The formated number as a string

Format(long)

Format a number to max 3 significant numbers and a suffix (K or M)

public static string Format(this long number)

Parameters

number
long

The number to format

Returns

string

The formated number as a string

Format(int?)

Format a number to max 3 significant numbers and a suffix (K or M)

public static string Format(this int? number)

Parameters

number
int?

The number to format

Returns

string

The formated number as a string

Format(long?)

Format a number to max 3 significant numbers and a suffix (K or M)

public static string Format(this long? number)

Parameters

number
long?

The number to format

Returns

string

The formated number as a string