NumberFormatInfo.PercentDecimalDigits
Imports System
Imports System.Globalization
Class NumberFormatInfoSample
Public Shared Sub Main()
Dim nfi As NumberFormatInfo = New CultureInfo("en-US", False).NumberFormat
' Displays a negative value with the default number of decimal digits (2).
Dim myInt As [Double] = 0.1234
Console.WriteLine(myInt.ToString("P", nfi))
End Sub
End Class
Related examples in the same category