取小數點2位(無條件捨去). Decimal result = Math.Floor(123.123456 * 100) / 100;. // output: 123.12. // 小數4位(無條件捨去).
確定! 回上一頁