AVEVA OMI Software Developer Kit



ArchestrA.Client.NumericFormatter Namespace > NumericFormatter Class > FormatNumber Method : FormatNumber(Int32,FormatStyle,Boolean) Method
an integer number
Galaxy predefined format style of choice
specifies whether to apply system regional settings on formatted value. default is true
FormatNumber(Int32,FormatStyle,Boolean) Method
Formats the given integer number with the specified format style, using the default length limit.
Syntax
'Declaration
 
Public Overloads MustOverride Function FormatNumber( _
   ByVal num As Integer, _
   ByVal format As FormatStyle, _
   Optional ByVal useRegionalSettings As Boolean _
) As String
'Usage
 
Dim instance As NumericFormatter
Dim num As Integer
Dim format As FormatStyle
Dim useRegionalSettings As Boolean
Dim value As String
 
value = instance.FormatNumber(num, format, useRegionalSettings)
public abstract string FormatNumber( 
   int num,
   FormatStyle format,
   bool useRegionalSettings
)
public:
abstract String^ FormatNumber( 
   int num,
   FormatStyle format,
   bool useRegionalSettings
) 

Parameters

num
an integer number
format
Galaxy predefined format style of choice
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