Imports System.GlobalizationModule Example Sub Main() Dim number As Double number = 1234 Console.WriteLine(number.ToString("G2", CultureInfo.InvariantCulture)) End SubEnd Module