NumberExtensions.Format Method

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

Overloads

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

Format(Int32)

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

public static string Format(this int number)

Parameters

number
System.Int32

Returns

System.String

The formated number as a string

Format(Int64)

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

public static string Format(this long number)

Parameters

number
System.Int64

Returns

System.String

The formated number as a string

Format(Nullable)

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

public static string Format(this int? number)

Parameters

number
System.Nullable{System.Int32}

Returns

System.String

The formated number as a string

Format(Nullable)

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

public static string Format(this long? number)

Parameters

number
System.Nullable{System.Int64}

Returns

System.String

The formated number as a string