We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a307635 commit 62ae2b8Copy full SHA for 62ae2b8
content/zh-cn/docs/reference/using-api/cel.md
@@ -491,7 +491,7 @@ Examples:
491
| `quantity("500000G").isInteger()` | 测试转换为整数是否会报错 |
492
| `quantity("50k").asInteger()` | 精确转换为整数 |
493
| `quantity("9999999999999999999999999999999999999G").asApproximateFloat()` | 松散转换为浮点数 |
494
-| `quantity("50k").add(quantity()"20k"))` | 两个数量相加 |
+| `quantity("50k").add(quantity("20k"))` | 两个数量相加 |
495
| `quantity("50k").sub(20000)` | 从数量中减去整数 |
496
| `quantity("50k").add(20).sub(quantity("100k")).sub(-50000)` | 链式相加和减去整数和数量 |
497
| `quantity("200M").compareTo(quantity("0.2G"))` | 比较两个数量 |
0 commit comments