修改密码

请输入密码
请输入密码 请输入8-64长度密码 和 email 地址不相同 至少包括数字、大写字母、小写字母、半角符号中的 3 个
请输入密码
提交

修改昵称

当前昵称:
提交

申请证书

证书详情

Please complete this required field.

  • Ultipa Graph V4

Standalone

Please complete this required field.

Please complete this required field.

服务器的MAC地址

Please complete this required field.

Please complete this required field.

取消
申请
ID
产品
状态
核数
申请天数
审批时间
过期时间
MAC地址
申请理由
审核信息
关闭
基础信息
  • 用户昵称:
  • 手机号:
  • 公司名称:
  • 公司邮箱:
  • 地区:
  • 语言:
修改密码
申请证书

当前未申请证书.

申请证书
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

ProductName CreateTime ID Price File
ProductName CreateTime ID Price File

No Invoice

搜索
    中文

      round()

      概述

      函数round()对给定数值进行一定精度地四舍五入,即返回与该数值最接近的某一精度的数值。如果同时存在两个最近的数字,则返回绝对值较大的一个。

      参数:round(<number>, <digit>)

      • <number>:数值
      • <digit>:精度,有效值包括-1(精确至十位)、0(精确至个位)、1(精确至一位小数)等,依此类推,默认为0

      返回值:

      • 四舍五入后的数值

      一般用法

      本例使用异源别名计算:

      uncollect [-3.75, 7.55] as a
      uncollect [0, 1] as b
      return table(a, b, round(a, b))
      

      |  a    | b | round(a, b) |
      |-------|---|-------------|
      | -3.75 | 0 | -4          |
      | 7.55  | 1 | 7.6         |
      

      本例将异源别名做笛卡尔积组合后计算:

      uncollect [-3.75, 7.55] as a
      uncollect [0, 1] as b
      with round(a, b) as c 
      return table(a, b, c)
      

      |  a    | b |   c  |
      |-------|---|------|
      | -3.75 | 0 | -4   |
      | -3.75 | 1 | -3.8 |
      | 7.55  | 0 | 8    |
      | 7.55  | 1 | 7.6  |
      
      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写