Skip to content

数据类型

数据类型:

  • Any
  • Text
  • Numeric
  • Integer
  • Toggle
  • Date
  • Datetime
  • Choice
  • Choice List
  • Reference
  • Reference List
  • Attachment

公式内容,数据类型默认 Any 。

123456789123456789123456789

左下角 Code view 。

import grist

# global uppercase functions
from functions import *

# modules commonly needed in formulas
import datetime, math, re


@grist.UserTable
class Table1:

  def A(rec, table):
    return 123456789123456789123456789

数据类型改为 Numeric ,显示内容丢失精度, Code View 保持原样。

123456789123456790000000000

数据类型改为 Text 。

123456789123456789123456789

联系 math@baima.site