HeaderPane
Main
Hide
Share Link
Print

FormatNumber Method, SftMask Class

Formats a number with the conventions of a culture.

Class: SftMask
Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET

Syntax

public static string FormatNumber(
    decimal value,
    int fracDigits,
    bool groupSeparators,
    CultureInfo culture );
Public Shared Function FormatNumber(
    ByVal value As Decimal,
    ByVal fracDigits As Integer,
    ByVal groupSeparators As Boolean,
    ByVal culture As CultureInfo
  ) As String

Parameters

value

The number.

fracDigits

The number of fraction digits, or -1 for the culture's default.

groupSeparators

Whether digits are grouped.

culture

The culture, or null for the current culture.

Return Value

The formatted number.

Comments

Formats a number with the conventions of a culture.

See Also SftMask Class | Classes | SftMask/NET 3.0