0 votes
1 view
in RPA by (5.3k points)

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.

1 Answer

0 votes
by (9.5k points)

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

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 20, 2020 in RPA by dev_sk2311 (38.1k points)
0 votes
1 answer
asked Nov 20, 2020 in RPA by dev_sk2311 (38.1k points)
0 votes
1 answer
0 votes
1 answer
asked Nov 20, 2020 in RPA by dev_sk2311 (38.1k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...