' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System
Imports System.IO

Module Main
    Sub Main()
        Dim x As Double = 0.00000000000000012345
        Console.WriteLine(x)
        Console.WriteLine(String.Format("{0:0.00000000000000000000}",x))
        Dim sw As StreamWriter = New StreamWriter("C:\z.txt")
        sw.WriteLine(x)
        sw.WriteLine(String.Format("{0:0.00000000000000000000}",x))
        sw.Close
    End Sub
End Module
