You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2cafa56
Browse filesBrowse the repository at this point in the historyBrowse files
docs(data-modeling): list percent among the formula return types
The formulas and field-types pages enumerate a formula's returnType; both
now name percent and state its fraction convention, its scale and its
percentDisplay face, as the field schema's describe does.
Claude-Session: https://claude.ai/code/session_01Utp6CajiB6BSQKWowy6YLB
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: content/docs/data-modeling/field-types.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -687,7 +687,7 @@ Calculated field using a CEL expression (see [Expressions](/docs/data-modeling/f
687
687
| Property | Type | Default | Description |
688
688
|:---|:---|:---|:---|
689
689
|`expression`|`string \| Expression`|**required**| CEL calculation expression |
690
-
|`returnType`|`'number' \| 'text' \| 'boolean' \| 'date' \| 'currency'`| — | Declared value type of the computed result. `currency`: an amount of money, in the currency the formula's own `currencyConfig` declares (none: dynamic; over record-mode amounts, `record` with their `currencyField`) |
690
+
|`returnType`|`'number' \| 'text' \| 'boolean' \| 'date' \| 'currency' \| 'percent'`| — | Declared value type of the computed result. `currency`: an amount of money, in the currency the formula's own `currencyConfig` declares (none: dynamic; over record-mode amounts, `record` with their `currencyField`). `percent`: a ratio, read as a `percent` field reads its stored value — a fraction (`0.25` shows `25%`, so the expression divides and does not multiply by 100) unless the formula declares a `max` above 1, then percentage points; its `scale` is the decimal places of the displayed percentage (absent: 0) and its `percentDisplay` picks the bar or the plain face. Declared, never inferred|
0 commit comments