access 数据库中的单精度型(精确的小数点后2位)如何用Datareader接收

reader.GetDecimal(4)报错了
我只好用reader.getValue(4),可我不明白为什么报错,除了getValue(列序号),应该用什么?
达人,能给说说reader.getDeciaml(4)为什么错?
reader.GetDecimal()能用于接收什么类型的数据?
偶喜欢知其然和所以然。偶若明白了,加分。

(float)reader[4];

(float)reader["字段名称"];
温馨提示:答案为网友推荐,仅供参考