- Code: Select all
String GetXG54Value = exec.Readkey("Workoffset_G54", "WorkoffsetX", "False");
decimal MyXG54Value = System.Convert.ToDecimal(GetXG54Value);
AS3.Setfieldtext(MyXG54Value.ToString("F4"), 3502);
My question. Is there a better way to show only 4 decimal places such as x.xxxx the value in the .pro file has more decimal places then I want to display . My way works, but it seems like there could be a simpler way.
Any input would be great. Thanks