Format Float as Decimal with D : float « Data Types « VB.Net






Format Float as Decimal with D

  
Imports System
Imports Microsoft.VisualBasic

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

   End Sub
End Class

   
    
  








Related examples in the same category

1.Format Float as currecy with C
2.Format Float as Scientific with E
3.Format Float as Fixed point with F