Back
I need to format my double value for example "12.4" into "12.40" , and "1" to "1.00" and I was searching for a function in the internet for a whole hour and can not find, or there is any other way to fix it? Everything must be seen in .xls file.
VB.NET provide functions to format a decimal as a string.
Dim integerNumber As Integer integerNumber = 17843 Console.WriteLine(integerNumber.ToString("F", CultureInfo.InvariantCulture)) ' Displays 17843.00
30.9k questions
32.9k answers
500 comments
665 users