Browse Source

feat(formulaUtils):allow decimal for round

Add a proper spacing in function description
pull/4091/head
Wonkeun No 2 years ago
parent
commit
cc3ca2c71a
  1. 2
      packages/nc-gui/utils/formulaUtils.ts

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

@ -182,7 +182,7 @@ const formulas: Record<string, any> = {
},
description: 'Rounded number to a specified number of decimal places or the nearest integer if not specified',
syntax: 'ROUND(value, precision), ROUND(value)',
examples: ['ROUND(3.1415) => 3', 'ROUND(3.1415,2) => 3.14', 'ROUND({column1}, 3)'],
examples: ['ROUND(3.1415) => 3', 'ROUND(3.1415, 2) => 3.14', 'ROUND({column1}, 3)'],
},
MOD: {
type: formulaTypes.NUMERIC,

Loading…
Cancel
Save