Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update scientifc notation #20

Merged
merged 3 commits into from
May 15, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,11 @@

双浮点数上限和下限分为别 `-1.79769e+308` 和 `1.79769e+308`。

## 科学计数法
### 科学计数法

科学计数法是指以尾数和指数表示的数字。尾数或指数中的一个或两个都可以带负号。例如:`1.2E3`、`1.2E-3`、`-1.2E3`、`-1.2E-3`。

## 示例

以下为几个例子:
Nebula Graph 中,支持用科学计数法表示 Double 类型。例如:

```ngql
1, -5, +10000100000
-2.3, +1.00000000000
1.2E3
nebula> CREATE TAG test1(price DOUBLE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a ; at the end of each query

nebula> INSERT VERTEX test1(price) VALUES 100:(1.2E3)
```