Skip to content

Commit

Permalink
docs: describe all signatures in the docs of function round
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Nov 15, 2023
1 parent 23fcb98 commit 71cadf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/expression/embeddedDocs/function/arithmetic/round.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ export const roundDocs = {
category: 'Arithmetic',
syntax: [
'round(x)',
'round(x, n)'
'round(x, n)',
'round(unit, valuelessUnit)',
'round(unit, n, valuelessUnit)',

Check failure on line 8 in src/expression/embeddedDocs/function/arithmetic/round.js

View workflow job for this annotation

GitHub Actions / build-and-test

Unexpected trailing comma

Check failure on line 8 in src/expression/embeddedDocs/function/arithmetic/round.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected trailing comma
],
description:
'round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.',
Expand Down
1 change: 1 addition & 0 deletions src/function/arithmetic/round.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const createRound = /* #__PURE__ */ factory(name, dependencies, ({ typed,
*
* math.round(x)
* math.round(x, n)
* math.round(unit, valuelessUnit)
* math.round(unit, n, valuelessUnit)
*
* Examples:
Expand Down

0 comments on commit 71cadf1

Please sign in to comment.