Question : Convert Double to String VB.NET



Dim qty as double = 9.0

Dim strExactQty as string

strExactQty = qty

I get 9, Instead of 9.0 , for other quantities like 11.23 I get 1123.

How can I get 9.0 as 90 in strExactQty  using VB.NET

Answer : Convert Double to String VB.NET

Specifically:
1:
2:
3:
Dim qty As Double = 9.0
Dim strExactQty As String 
strExactQty = qty.ToString("0.00")
Random Solutions  
 
programming4us programming4us