Browse Source

Add an argument to ROUND func to show decimal numbers

pull/4091/head
Wonkeun No 2 years ago
parent
commit
430a50ed71
  1. 8
      packages/nc-gui/utils/formulaUtils.ts

8
packages/nc-gui/utils/formulaUtils.ts

@ -176,12 +176,12 @@ const formulas: Record<string, any> = {
type: formulaTypes.NUMERIC, type: formulaTypes.NUMERIC,
validation: { validation: {
args: { args: {
rqd: 1, rqd: 2,
}, },
}, },
description: 'Nearest integer to the input parameter', description: 'Rounded number to a specified number of decimal places',
syntax: 'ROUND(value)', syntax: 'ROUND(value, decimals)',
examples: ['ROUND(3.1415) => 3', 'ROUND({column1})'], examples: ['ROUND(3.1415,2) => 3.14', 'ROUND({column1}, 3)'],
}, },
MOD: { MOD: {
type: formulaTypes.NUMERIC, type: formulaTypes.NUMERIC,

Loading…
Cancel
Save