NumberFormatInfo percent format properties : NumberFormatInfo « Internationalization I18N « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » Internationalization I18N » NumberFormatInfoScreenshots 
NumberFormatInfo percent format properties
 

Imports System
Imports System.Globalization
Imports System.Text
Imports Microsoft.VisualBasic


Class SamplesNumberFormatInfo
   Public Shared Sub Main()
      Dim myInv As NumberFormatInfo = NumberFormatInfo.InvariantInfo

      Dim myUE As New UnicodeEncoding(True, False)
      Dim myCodes() As Byte

      Console.WriteLine(myInv.PercentDecimalDigits)
      Console.WriteLine(myInv.PercentDecimalSeparator)
      Console.WriteLine(myInv.PercentGroupSeparator)
      Console.WriteLine(myInv.PercentGroupSizes(0))
      Console.WriteLine(myInv.PercentNegativePattern)
      Console.WriteLine(myInv.PercentPositivePattern)


   End Sub 
End Class 

   
  
Related examples in the same category
1.NumberFormatInfo Class defines how to format numbers
2.NumberFormatInfo.CurrencyDecimalDigits tells the number of decimal places to use in currency values.
3.NumberFormatInfo.CurrencyDecimalSeparator
4.NumberFormatInfo.CurrencyGroupSeparator
5.NumberFormatInfo.CurrencyGroupSizes
6.NumberFormatInfo.DigitSubstitution
7.NumberFormatInfo.InvariantInfo
8.NumberFormatInfo number format properties
9.NumberFormatInfo.NativeDigits gets or sets native digits equivalent to the Western digits 0 through 9.
10.NumberFormatInfo.NumberDecimalDigits
11.NumberFormatInfo.NumberDecimalSeparator gets or sets decimal separator in numeric values.
12.NumberFormatInfo.NumberGroupSeparator
13.NumberFormatInfo.NumberGroupSizes
14.NumberFormatInfo.NumberNegativePattern
15.NumberFormatInfo.PercentDecimalDigits
16.NumberFormatInfo.PercentDecimalSeparator
17.NumberFormatInfo.PercentGroupSeparator
18.Displays the value with default formatting
19.Displays a negative value with the default number of decimal digits (2)
20.Displays the same value with four decimal digits
21.Displays the same value with a blank as the separator
22.Displays a value with the default separator (",")
23.Displays the same value with a blank as the separator
24.Displays a value with the default separator (".")
25.Displays with different groupings
26.Currency Symbol codes
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.