Skip to content

Commit a1fb600

Browse files
authored
Function N (#1606)
* Add tests for function N * Add function N * Fix linter error
1 parent f706d17 commit a1fb600

File tree

20 files changed

+278
-1
lines changed

20 files changed

+278
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1010
### Added
1111

1212
- Added a new function: IRR. [#1591](https://github.com/handsontable/hyperformula/issues/1591)
13+
- Added a new function: N. [#1585](https://github.com/handsontable/hyperformula/issues/1585)
1314

1415
## [3.1.1] - 2025-12-18
1516

docs/guide/built-in-functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ Total number of functions: **{{ $page.functionsCount }}**
492492
| LEN | Returns length of a given text. | LEN("Text") |
493493
| LOWER | Returns text converted to lowercase. | LOWER(Text) |
494494
| MID | Returns substring of a given length starting from Start_position. | MID(Text, Start_position, Length) |
495+
| N | Converts a value to a number. | N(Value) |
495496
| PROPER | Capitalizes words given text string. | PROPER("Text") |
496497
| REPLACE | Replaces substring of a text of a given length that starts at given position. | REPLACE(Text, Start_position, Length, New_text) |
497498
| REPT | Repeats text a given number of times. | REPT("Text", Number) |

src/i18n/languages/csCZ.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const dictionary: RawTranslationPackage = {
149149
MMULT: 'SOUČIN.MATIC',
150150
MOD: 'MOD',
151151
MONTH: 'MĚSÍC',
152+
N: 'N',
152153
NA: 'NEDEF',
153154
NETWORKDAYS: 'NETWORKDAYS',
154155
'NETWORKDAYS.INTL': 'NETWORKDAYS.INTL',

src/i18n/languages/daDK.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const dictionary: RawTranslationPackage = {
149149
MMULT: 'MPRODUKT',
150150
MOD: 'REST',
151151
MONTH: 'MÅNED',
152+
N: 'TAL',
152153
NA: 'IKKE.TILGÆNGELIG',
153154
NETWORKDAYS: 'ANTAL.ARBEJDSDAGE',
154155
'NETWORKDAYS.INTL': 'ANTAL.ARBEJDSDAGE.INTL',

src/i18n/languages/deDE.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const dictionary: RawTranslationPackage = {
149149
MMULT: 'MMULT',
150150
MOD: 'REST',
151151
MONTH: 'MONAT',
152+
N: 'N',
152153
NA: 'NV',
153154
NETWORKDAYS: 'NETTOARBEITSTAGE',
154155
'NETWORKDAYS.INTL': 'NETTOARBEITSTAGE.INTL',

src/i18n/languages/enGB.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ const dictionary: RawTranslationPackage = {
150150
MMULT: 'MMULT',
151151
MOD: 'MOD',
152152
MONTH: 'MONTH',
153+
N: 'N',
153154
NA: 'NA',
154155
NETWORKDAYS: 'NETWORKDAYS',
155156
'NETWORKDAYS.INTL': 'NETWORKDAYS.INTL',

src/i18n/languages/esES.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export const dictionary: RawTranslationPackage = {
149149
MMULT: 'MMULT',
150150
MOD: 'RESIDUO',
151151
MONTH: 'MES',
152+
N: 'N',
152153
NA: 'NOD',
153154
NETWORKDAYS: 'DIAS.LAB',
154155
'NETWORKDAYS.INTL': 'DIAS.LAB.INTL',

src/i18n/languages/fiFI.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const dictionary: RawTranslationPackage = {
149149
MMULT: 'MKERRO',
150150
MOD: 'JAKOJ',
151151
MONTH: 'KUUKAUSI',
152+
N: 'N',
152153
NA: 'PUUTTUU',
153154
NETWORKDAYS: 'TYÖPÄIVÄT',
154155
'NETWORKDAYS.INTL': 'TYÖPÄIVÄT.KANSVÄL',

src/i18n/languages/frFR.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const dictionary: RawTranslationPackage = {
149149
MMULT: 'PRODUITMAT',
150150
MOD: 'MOD',
151151
MONTH: 'MOIS',
152+
N: 'N',
152153
NA: 'NA',
153154
NETWORKDAYS: 'NB.JOURS.OUVRES',
154155
'NETWORKDAYS.INTL': 'NB.JOURS.OUVRES.INTL',

src/i18n/languages/huHU.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const dictionary: RawTranslationPackage = {
149149
MMULT: 'MSZORZAT',
150150
MOD: 'MARADÉK',
151151
MONTH: 'HÓNAP',
152+
N: 'S',
152153
NA: 'HIÁNYZIK',
153154
NETWORKDAYS: 'ÖSSZ.MUNKANAP',
154155
'NETWORKDAYS.INTL': 'ÖSSZ.MUNKANAP.INTL',

0 commit comments

Comments
 (0)