Format Float as currecy with C : float « Data Types « VB.Net






Format Float as currecy with C

  

Imports System
Imports Microsoft.VisualBasic

Class Sample
   Public Shared Sub Main()
      Console.Clear()
      Console.WriteLine("(C) Currency: . . . . . . . . {0:C}" & vbCrLf & - 123, - 123.45F)

   End Sub
End Class

   
    
  








Related examples in the same category

1.Format Float as Decimal with D
2.Format Float as Scientific with E
3.Format Float as Fixed point with F