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