See the following code. Copy Code. string str = "1.225222222"; decimal value = 0; decimal.TryParse(str, out value); value = Math.
確定! 回上一頁