修改密码

请输入密码
请输入密码 请输入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

搜索
    中文

      toDecimal()

      概述

      函数toDecimal()将一个对象转换为十进制小数。

      参数:toDecimal(<value>, <scale?>)

      • <value>:转换对象(数值、文本、NODE、EDGE、bool类型)
      • <scale?>:转换标度,填写0~30的整数,未指定时与原数值保持一致

      返回值:

      • 转换后的十进制小数(decimal类型)或null
      • 针对不同类型对象的规则:
        • 数值类型:返回十进制小数
        • 文本类型:全部为数字时,返回十进制小数;有其他字符时,返回null
        • NODE或EDGE类型:返回点或边_uuid的值
        • bool类型:返回0或1
        • 其他类型:返回null

      一般用法

      本例将数值123.456转换为十进制小数,标度为2:

      return toDecimal(123.456, 2)
      

      123.46
      

      本例将文本“123.456abc”依次转换为整数、单精度浮点数和十进制小数:

      return table(toInteger("123.456abc"),toFloat("123.456abc"),toDecimal("123.456abc"))
      

      | toInteger("123.456abc") | toFloat("123.456abc") | toDecimal("123.456abc") |
      |-------------------------|-----------------------|-------------------------|
      | 123                     | 123.456               | null                 |
      
      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写