if (!double.TryParse("10.23", out double result)) { return "Invalid!"; } return $"Result is {result}";