Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ hf.setCellContents({ sheet: sheetId, row: 0, col: 0 }, [['Monthly Payment', '=PM
console.log(`${hf.getCellValue({ sheet: sheetId, row: 0, col: 0 })}: ${hf.getCellValue({ sheet: sheetId, row: 0, col: 1 })}`);
```

[Run this code in CodeSandbox](https://codesandbox.io/p/sandbox/github/handsontable/hyperformula-demos/tree/3.0.x/mortgage-calculator)
[Run this code in StackBlitz](https://stackblitz.com/github/handsontable/hyperformula-demos/tree/3.0.x/mortgage-calculator)

## Contributing

Expand Down
4 changes: 3 additions & 1 deletion docs/examples/i18n/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ const config = {
licenseKey: 'gpl-v3',
};

HyperFormula.registerLanguage('enUS', enUS);
if (!HyperFormula.getRegisteredLanguagesCodes().includes('enUS')) {
HyperFormula.registerLanguage('enUS', enUS);
}

// Create an empty HyperFormula instance.
const hf = HyperFormula.buildEmpty(config);
Expand Down
4 changes: 3 additions & 1 deletion docs/examples/i18n/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ const config = {
licenseKey: 'gpl-v3',
};

HyperFormula.registerLanguage('enUS', enUS);
if (!HyperFormula.getRegisteredLanguagesCodes().includes('enUS')) {
HyperFormula.registerLanguage('enUS', enUS);
}

// Create an empty HyperFormula instance.
const hf = HyperFormula.buildEmpty(config);
Expand Down
4 changes: 3 additions & 1 deletion docs/examples/localizing-functions/example1.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const tableData = [
];

// register language
HyperFormula.registerLanguage('frFR', frFR);
if (!HyperFormula.getRegisteredLanguagesCodes().includes('frFR')) {
HyperFormula.registerLanguage('frFR', frFR);
}

// Create an empty HyperFormula instance.
const hf = HyperFormula.buildEmpty({
Expand Down
4 changes: 3 additions & 1 deletion docs/examples/localizing-functions/example1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const tableData = [
];

// register language
HyperFormula.registerLanguage('frFR', frFR);
if (!HyperFormula.getRegisteredLanguagesCodes().includes('frFR')) {
HyperFormula.registerLanguage('frFR', frFR);
}

// Create an empty HyperFormula instance.
const hf = HyperFormula.buildEmpty({
Expand Down
18 changes: 9 additions & 9 deletions docs/guide/built-in-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ Total number of functions: **{{ $page.functionsCount }}**
| HEX2BIN | The result is the binary number for the hexadecimal number entered. | HEX2BIN(Number, Places) |
| HEX2DEC | The result is the decimal number for the hexadecimal number entered. | HEX2DEC(Number) |
| HEX2OCT | The result is the octal number for the hexadecimal number entered. | HEX2OCT(Number, Places) |
| IMABS | Returns module of a complex number. | IMABS(Complex) |
| IMABS | Returns modulus of a complex number. | IMABS(Complex) |
| IMAGINARY | Returns imaginary part of a complex number. | IMAGINARY(Complex) |
| IMARGUMENT | Returns argument of a complex number. | IMARGUMENT(Complex) |
| IMCONJUGATE | Returns conjugate of a complex number. | IMCONJUGATE(Complex) |
| IMCOS | Returns cosine of a complex number. | IMCOS(Complex) |
| IMCOSH | Returns hyperbolic cosine of a complex number. | IMCOSH(Complex) |
| IMCOT | Returns cotangens of a complex number. | IMCOT(Complex) |
| IMCSC | Returns cosecans of a complex number. | IMCSC(Complex) |
| IMCSCH | Returns hyperbolic cosecans of a complex number. | IMCSCH(Complex) |
| IMCOT | Returns cotangent of a complex number. | IMCOT(Complex) |
| IMCSC | Returns cosecant of a complex number. | IMCSC(Complex) |
| IMCSCH | Returns hyperbolic cosecant of a complex number. | IMCSCH(Complex) |
| IMDIV | Divides two complex numbers. | IMDIV(Complex1, Complex2) |
| IMEXP | Returns exponent of a complex number. | IMEXP(Complex) |
| IMLN | Returns natural logarithm of a complex number. | IMLN(Complex) |
Expand Down Expand Up @@ -255,7 +255,7 @@ Total number of functions: **{{ $page.functionsCount }}**
| COT | Returns the cotangent of the given angle (in radians). | COT(Number) |
| COTH | Returns the hyperbolic cotangent of the given value. | COTH(Number) |
| COUNTUNIQUE | Counts the number of unique values in a list of specified values and ranges. | COUNTUNIQUE(Value1, Value2, ...ValueN) |
| CSC | Returns the cosecans of the given angle (in radians). | CSC(Number) |
| CSC | Returns the cosecant of the given angle (in radians). | CSC(Number) |
| CSCH | Returns the hyperbolic cosecant of the given value. | CSCH(Number) |
| DECIMAL | Converts text with characters from a number system to a positive integer in the base radix given. | DECIMAL("Text", Radix) |
| DEGREES | Converts radians into degrees. | DEGREES(Number) |
Expand All @@ -269,7 +269,7 @@ Total number of functions: **{{ $page.functionsCount }}**
| GCD | Computes greatest common divisor of numbers. | GCD(Number1, Number2, ...NumberN) |
| INT | Rounds a number down to the nearest integer. | INT(Number) |
| ISO.CEILING | Rounds a number up to the nearest multiple of Significance. | ISO.CEILING(Number[, Significance]) |
| LCM | Computes least common multiplicity of numbers. | LCM(Number1, Number2, ...NumberN) |
| LCM | Computes least common multiple of numbers. | LCM(Number1, Number2, ...NumberN) |
| LN | Returns the natural logarithm based on the constant e of a number. | LN(Number) |
| LOG | Returns the logarithm of a number to the specified base. | LOG(Number, Base) |
| LOG10 | Returns the base-10 logarithm of a number. | LOG10(Number) |
Expand Down Expand Up @@ -350,8 +350,8 @@ Total number of functions: **{{ $page.functionsCount }}**
| BESSELJ | Returns value of Bessel function. | BESSELJ(x, n) |
| BESSELK | Returns value of Bessel function. | BESSELK(x, n) |
| BESSELY | Returns value of Bessel function. | BESSELY(x, n) |
| BETA.DIST | Returns the denisty of Beta distribution. | BETA.DIST(Number1, Number2, Number3, Boolean[, Number4[, Number5]]) |
| BETADIST | Returns the denisty of Beta distribution. | BETADIST(Number1, Number2, Number3, Boolean[, Number4[, Number5]]) |
| BETA.DIST | Returns the density of Beta distribution. | BETA.DIST(Number1, Number2, Number3, Boolean[, Number4[, Number5]]) |
| BETADIST | Returns the density of Beta distribution. | BETADIST(Number1, Number2, Number3, Boolean[, Number4[, Number5]]) |
| BETA.INV | Returns the inverse Beta distribution value. | BETA.INV(Number1, Number2, Number3[, Number4[, Number5]]) |
| BETAINV | Returns the inverse of Beta distribution value. | BETAINV(Number1, Number2, Number3[, Number4[, Number5]]) |
| BINOM.DIST | Returns density of binomial distribution. | BINOM.DIST(Number1, Number2, Number3, Boolean) |
Expand Down Expand Up @@ -404,7 +404,7 @@ Total number of functions: **{{ $page.functionsCount }}**
| GAMMALN.PRECISE | Returns natural logarithm of Gamma function. | GAMMALN.PRECISE(Number) |
| GAMMA.INV | Returns inverse Gamma distribution value. | GAMMA.INV(Number1, Number2, Number3) |
| GAMMAINV | Returns inverse Gamma distribution value. | GAMMAINV(Number1, Number2, Number3) |
| GAUSS | Returns the probability of gaussian variable fall more than this many times standard deviation from mean. | GAUSS(Number) |
| GAUSS | Returns the probability of gaussian variable falling more than this many times standard deviation from mean. | GAUSS(Number) |
| GEOMEAN | Returns the geometric average. | GEOMEAN(Number1, Number2, ...NumberN) |
| HARMEAN | Returns the harmonic average. | HARMEAN(Number1, Number2, ...NumberN) |
| HYPGEOMDIST | Returns density of hypergeometric distribution. | HYPGEOMDIST(Number1, Number2, Number3, Number4, Boolean) |
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ hf.setCellContents({ sheet: sheetId, row: 0, col: 0 }, [['Monthly Payment', '=PM
console.log(`${hf.getCellValue({ sheet: sheetId, row: 0, col: 0 })}: ${hf.getCellValue({ sheet: sheetId, row: 0, col: 1 })}`);
```

[Run this code in CodeSandbox](https://codesandbox.io/p/sandbox/github/handsontable/hyperformula-demos/tree/3.0.x/mortgage-calculator)
[Run this code in StackBlitz](https://stackblitz.com/github/handsontable/hyperformula-demos/tree/3.0.x/mortgage-calculator)

## Contributing

Expand Down