Hello guys,

I got a question that converting string data type to double.

For instance, I want to get maintain decimal 2 places of 573 so I did

string a = Math.Round(573, 2).ToString(“F2”);

However, I need the data type as “double”, so I used “Convert.ToDouble(a)” method .

double b = Convert.ToDouble(a);

It turns out that it removes the decimals 2 places that I want to keep.

I 'd like to knows how to maintain the decimal places and return a double data type.

Thank you, guys!

Decimal.gh (3.0 KB)