Skip to content

Commit

Permalink
add annotation to some examples of type-conversion clause (#2398)
Browse files Browse the repository at this point in the history
as titled
  • Loading branch information
knqiufan authored Dec 27, 2023
1 parent 0b2db62 commit c4ad3fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs-2.0-zh/3.ngql-guide/3.data-types/9.type-conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
## 示例

```ngql
# 将列表拆分,并各自转换为布尔值显示。
nebula> UNWIND [true, false, 'true', 'false', NULL] AS b \
RETURN toBoolean(b) AS b;
+----------+
Expand All @@ -23,6 +24,7 @@ nebula> UNWIND [true, false, 'true', 'false', NULL] AS b \
| __NULL__ |
+----------+
# 将整数或字符串转换为浮点数。
nebula> RETURN toFloat(1), toFloat('1.3'), toFloat('1e3'), toFloat('not a number');
+------------+----------------+----------------+-------------------------+
| toFloat(1) | toFloat("1.3") | toFloat("1e3") | toFloat("not a number") |
Expand Down

0 comments on commit c4ad3fa

Please sign in to comment.