FormatNumber(Double,FormatStyle,Int32,Boolean) Method
Formats the given double number with the specified format style and length limit.
Syntax
'Declaration Public Overloads MustOverride Function FormatNumber( _ ByVal num As Double, _ ByVal format As FormatStyle, _ ByVal lengthLimit As Integer, _ Optional ByVal useRegionalSettings As Boolean _ ) As String
'Usage Dim instance As NumericFormatter Dim num As Double Dim format As FormatStyle Dim lengthLimit As Integer Dim useRegionalSettings As Boolean Dim value As String value = instance.FormatNumber(num, format, lengthLimit, useRegionalSettings)
public abstract string FormatNumber( double num, FormatStyle format, int lengthLimit, bool useRegionalSettings )
public: abstract String^ FormatNumber( double num, FormatStyle format, int lengthLimit, bool useRegionalSettings )
Parameters
- num
- a double number
- format
- Galaxy predefined format style of choice
- lengthLimit
- Length Limit to use for formatting
- useRegionalSettings
- specifies whether to apply system regional settings on formatted value. default is true
Return Value
Formatted string
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also