System.Decimal 構造体の小数桁数を取得する - Qiita

System.Decimal 構造体は内部的に桁数の情報を持っている。そのため、以下は異なる結果が返る。Console.WriteLine(0m.ToString()); // 0Consol…