Mega Code Archive

 
Categories / VB.Net Tutorial / Data Type
 

Passing formatted numeric values to Val

Option Strict On Public Module Tester    Public Sub Main()       ' Passing formatted numeric values to Val       Console.WriteLine(Val("$1034.51"))              Console.WriteLine(Val("1,032.54"))           End Sub End Module 0 1