mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Tweaks to documentation comments for user-facing Grist functions (#126)
- Update internal links in function documentation - Remove emphasis in code blocks - Remove trailing whitespace
This commit is contained in:
@@ -797,7 +797,7 @@ def SUMIFS(sum_range, criteria_range1, criterion1, *args):
|
||||
|
||||
def SUMPRODUCT(array1, *more_arrays):
|
||||
"""
|
||||
Multiplies corresponding components in two equally-sized arrays,
|
||||
Multiplies corresponding components in two equally-sized arrays,
|
||||
and returns the sum of those products.
|
||||
|
||||
>>> SUMPRODUCT([3,8,1,4,6,9], [2,6,5,7,7,3])
|
||||
@@ -861,10 +861,10 @@ def TRUNC(value, places=0):
|
||||
|
||||
def UUID():
|
||||
"""
|
||||
Generate a random UUID-formatted string identifier.
|
||||
Since UUID() produces a different value each time it's called, it is best to use it in
|
||||
[trigger formula](https://support.getgrist.com/formulas/#trigger-formulas) for new records.
|
||||
This would only calculate UUID() once and freeze the calculated value. By contrast, a regular [formula]
|
||||
Generate a random UUID-formatted string identifier.
|
||||
Since UUID() produces a different value each time it's called, it is best to use it in
|
||||
[trigger formula](formulas.md#trigger-formulas) for new records.
|
||||
This would only calculate UUID() once and freeze the calculated value. By contrast, a regular formula
|
||||
may get recalculated any time the document is reloaded, producing a different value for UUID() each time.
|
||||
"""
|
||||
if six.PY2:
|
||||
|
||||
@@ -220,9 +220,9 @@ def LEFT(string, num_chars=1):
|
||||
|
||||
def LEN(text):
|
||||
"""
|
||||
Returns the number of characters in a text string, or the number of items in a list. Same as
|
||||
[`len`](https://docs.python.org/3/library/functions.html#len) in python.
|
||||
See [Record Set](https://support.getgrist.com/functions/#recordset) for an example of using `len` on a list of records.
|
||||
Returns the number of characters in a text string, or the number of items in a list. Same as
|
||||
[`len`](https://docs.python.org/3/library/functions.html#len) in python.
|
||||
See [Record Set](#recordset) for an example of using `len` on a list of records.
|
||||
|
||||
>>> LEN("Phoenix, AZ")
|
||||
11
|
||||
|
||||
Reference in New Issue
Block a user