In the screenshot below, acnum is an object[ .]array while val1 is a double variable. I’m trying to convert acnum(0) item into “00000.00” format and thrown with an error.
How to get the features of " acnum(0).tostring(“D5”) " --//I understand this works only for INT
As well as acnum(0).tostring(“F2”,CultureInfo.InvariantCulture) together?
What is the fundamental piece of understanding that I am missing here. Any help appreciated.
Hi @SudhakarAs92
Buddy you were almost right, but need small correction
At last the writeline activity must be mentioned like this String.Format(“{0:00}”, acnum(0))
And the reason why this didn work is, it should be in This format String.Format(“{0:F2}”,acnum(0))