算術演算子
算術演算子は、同じフィールド型の 2 つの式で基本的な数学演算を実行し、数値を生成します。
例: "[total_revenue]" フィールドと "[total_cost]" フィールドの値を使用して、粗利益率を計算できます。
(([total_revenue] - [total_cost]) / [total_cost]) * 100
演算子 | 意味 | 例 |
|---|---|---|
+
| 追加 | [amount] + 10
[amount] フィールドの値に 10 を加算します。 |
-
| 減算 | [amount] - 10
"[amount]" フィールドの値から 10 を減算します。 |
*
| 乗算 | [amount] * 100
"[amount]" フィールドの値を 100 で乗算します。 |
/
| 部門 | [bytes] / 1024
"[byds]" フィールドの値を 1024 で除算し、商を返します。 |