Decimal format: E04 and Culture : Decimal Format « Data Types « VB.Net






Decimal format: E04 and Culture

  

Imports System
Imports Microsoft.VisualBasic
Imports System.Globalization
Module MainClass
    Sub Main( )
        Dim value As Decimal = 99999.62d
        Dim specifier As String
        Dim culture As CultureInfo
        
        specifier = "E04"
        culture = CultureInfo.CreateSpecificCulture("sv-SE")
        Console.WriteLine(value.ToString(specifier, culture))
        culture = CultureInfo.CreateSpecificCulture("en-NZ")
        Console.WriteLine(value.ToString(specifier, culture))
    End Sub 
End Module 

   
    
  








Related examples in the same category

1.Decimal format: C
2.Decimal format: E04
3.Decimal format: F
4.Decimal format: N
5.Decimal format: P
6.Decimal format: 0,0.000
7.Decimal format: #,#.00#;(#,#.00#)
8.Decimal.ToString Method Converts Decimal to string using the specified format and culture-specific format information.
9.Decimal format: C and specific Culture
10.Decimal format: F and Culture
11.Decimal format: N and Culture
12.Decimal format: P and Culture
13.Decimal format: G, C, F
14.Standard Numeric Format Strings: C2