How to use Decimal format specifier and fixed point specifier together on a double variable

Thanks for the response!

String.Format(“{0:F2}”,acnum(0)) solved my query partially though…

Meanwhile, the below line worked for me satisfying both the formats that i needed.

convert.ToDouble(acnum(0)).ToString(“F2”,CultureInfo.InvariantCulture).PadLeft(5,Cchar(“0”))

If there are any other efficient way to achieve this, do share. Thankz!

3 Likes