Number 字段类型
这些字段类型使用 dataType: 'number'。
| 字段类型 | 存储值 |
|---|---|
| 数字 | 数值 |
| 汇总 | 汇总函数返回数字时的数值 |
| 动态公式 | 公式结果类型为 number 时的数值 |
常见数字汇总函数包括计数、求和、最大值、最小值、平均值、中位数和范围。
const total = Number(record.data.total_amount || 0);
const tax = Number((total * 0.08).toFixed(2));
这些字段类型使用 dataType: 'number'。
| 字段类型 | 存储值 |
|---|---|
| 数字 | 数值 |
| 汇总 | 汇总函数返回数字时的数值 |
| 动态公式 | 公式结果类型为 number 时的数值 |
常见数字汇总函数包括计数、求和、最大值、最小值、平均值、中位数和范围。
const total = Number(record.data.total_amount || 0);
const tax = Number((total * 0.08).toFixed(2));