Imports System.Numerics
Imports System
Imports System.Globalization
Module Example
Public Sub Main()
Dim bigIntegerFormatter As New NumberFormatInfo()
bigIntegerFormatter.NegativeSign = "~"
Dim value As BigInteger = BigInteger.Parse("-9999")
Dim specifiers() As String = {"C", "D", "D25", "E", "E4", "e8", "F0", "#,#.00#;(#,#.00#)"}
For Each specifier As String In specifiers
Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier,
bigIntegerformatter))
Next
End Sub
End Module