# ConfigParams Interface

# License

# licenseKey

licenseKey: string

Defined in src/Config.ts:224 (opens new window)

Sets your HyperFormula license key.

To use HyperFormula on the GPLv3 license terms, set this option to gpl-v3.

To use HyperFormula with your commercial license, set this option to your valid license key string.

For more information, go here.

default undefined


# Engine

# binarySearchThreshold

binarySearchThreshold: number

Defined in src/Config.ts:51 (opens new window)

Sets a minimum number of elements that a range must have to use binary search.

deprecated Every search of sorted data always uses binary search.

default 20


# chooseAddressMappingPolicy

chooseAddressMappingPolicy: ChooseAddressMapping

Defined in src/Config.ts:86 (opens new window)

Sets the address mapping policy to be used.

Built-in implementations:

  • DenseSparseChooseBasedOnThreshold: sets the address mapping policy separately for each sheet, based on fill ratio.
  • AlwaysDense: uses DenseStrategy for all sheets.
  • AlwaysSparse: uses SparseStrategy for all sheets.

default AlwaysDense


# evaluateNullToZero

evaluateNullToZero: boolean

Defined in src/Config.ts:143 (opens new window)

When set to true, formulas evaluating to null evaluate to 0 instead.

default false


# gpuMode

gpuMode: GPUMode

Defined in src/Config.ts:182 (opens new window)

Sets array calculations to use either GPU or CPU.

When set to gpu, tries to use GPU for array calculations.

When set to cpu, enforces CPU usage.

Use other values only for debugging purposes.

For more information, see the GPU.js documentation (opens new window).

deprecated since version 1.2

default 'gpu'


# gpujs Optional

gpujs? : any

Defined in src/Config.ts:164 (opens new window)

A GPU.js constructor used by array functions.

When not provided, the plain CPU implementation is used.

deprecated since version 1.2.

default undefined


# maxColumns

maxColumns: number

Defined in src/Config.ts:273 (opens new window)

Sets the maximum number of columns.

default 18,278


# maxRows

maxRows: number

Defined in src/Config.ts:265 (opens new window)

Sets the maximum number of rows.

default 40,000


# useArrayArithmetic

useArrayArithmetic: boolean

Defined in src/Config.ts:400 (opens new window)

When set to true, array arithmetic is enabled globally.

When set to false, array arithmetic is enabled only inside array functions (ARRAYFORMULA, FILTER, and ARRAY_CONSTRAIN).

For more information, see the Arrays guide.

default false


# useColumnIndex

useColumnIndex: boolean

Defined in src/Config.ts:412 (opens new window)

When set to true, switches column search strategy from binary search to column index.

Using column index improves efficiency of the VLOOKUP and MATCH functions, but increases memory usage.

When searching with wildcards or regular expressions, column search strategy falls back to binary search (even with useColumnIndex set to true).

default false


# useStats

useStats: boolean

Defined in src/Config.ts:422 (opens new window)

When set to true, enables gathering engine statistics and timings.

Useful for testing and benchmarking.

default false


# Formula Syntax

# functionArgSeparator

functionArgSeparator: string

Defined in src/Config.ts:121 (opens new window)

Sets a separator character that separates procedure arguments in formulas.

Must be different from decimalSeparator and thousandSeparator.

default ','


# functionPlugins

functionPlugins: any[]

Defined in src/Config.ts:152 (opens new window)

Lists additional function plugins to be used by the formula interpreter.

default []


# language

language: string

Defined in src/Config.ts:198 (opens new window)

Sets a translation package for function and error names.

default 'enGB'


# Undo and Redo

# undoLimit

undoLimit: number

Defined in src/Config.ts:430 (opens new window)

Sets the number of elements kept in the undo history.

default 20


# Date and Time

# dateFormats

dateFormats: string[]

Defined in src/Config.ts:111 (opens new window)

Sets date formats that are supported by date-parsing functions.

The separator is ignored and can be any of the following:

  • - (dash)
  • (empty space)
  • / (slash)

YY can be replaced with YYYY.

Any order of YY, MM, and DD is accepted as a date.

default ['DD/MM/YYYY', 'DD/MM/YY']


# leapYear1900

leapYear1900: boolean

Defined in src/Config.ts:210 (opens new window)

Sets year 1900 as a leap year.

For compatibility with Lotus 1-2-3 and Microsoft Excel, set this option to true.

For more information, see nullDate.

default false


# nullDate

nullDate: SimpleDate

Defined in src/Config.ts:283 (opens new window)

Internally, each date is represented as a number of days that passed since nullDate.

This option sets a specific date from which that number of days is counted.

default {year: 1899, month: 12, day: 30}


# nullYear

nullYear: number

Defined in src/Config.ts:297 (opens new window)

Sets the interpretation of two-digit year values.

Two-digit year values (xx) can either become 19xx or 20xx.

If xx is less or equal to nullYear, two-digit year values become 20xx.

If xx is more than nullYear, two-digit year values become 19xx.

default 30


# parseDateTime

parseDateTime: function

Defined in src/Config.ts:305 (opens new window)

Sets a function that parses strings representing date-time into actual date-time.

default defaultParseToDateTime

# Type declaration:

▸ (dateTimeString: string, dateFormat?: undefined | string, timeFormat?: undefined | string): MaybeDateTime

Parameters:

Name Type
dateTimeString string
dateFormat? undefined | string
timeFormat? undefined | string

# stringifyDateTime

stringifyDateTime: function

Defined in src/Config.ts:340 (opens new window)

Sets a function that converts date-time into strings.

default defaultStringifyDateTime

# Type declaration:

▸ (dateTime: SimpleDateTime, dateTimeFormat: string): Maybe‹string›

Parameters:

Name Type
dateTime SimpleDateTime
dateTimeFormat string

# stringifyDuration

stringifyDuration: function

Defined in src/Config.ts:348 (opens new window)

Sets a function that converts time duration into strings.

default defaultStringifyDuration

# Type declaration:

▸ (time: SimpleTime, timeFormat: string): Maybe‹string›

Parameters:

Name Type
time SimpleTime
timeFormat string

# timeFormats

timeFormats: string[]

Defined in src/Config.ts:388 (opens new window)

Sets time formats that will be supported by time-parsing functions.

The separator is : (colon).

Accepts any configuration of at least two of the following, in any order:

  • hh: hours
  • mm: minutes
  • ss: seconds

default ['hh:mm', 'hh:mm:ss.sss']


# Formula syntax

# arrayColumnSeparator

arrayColumnSeparator: "," | ";"

Defined in src/Config.ts:250 (opens new window)

Sets a column separator symbol for array notation.

default ','


# arrayRowSeparator

arrayRowSeparator: ";" | "|"

Defined in src/Config.ts:257 (opens new window)

Sets a row separator symbol for array notation.

default ';'


# Number

# currencySymbol

currencySymbol: string[]

Defined in src/Config.ts:94 (opens new window)

Sets symbols that denote currency numbers.

default ['$']


# decimalSeparator

decimalSeparator: "." | ","

Defined in src/Config.ts:135 (opens new window)

Sets a decimal separator used for parsing numerical literals.

Can be one of the following:

  • . (period)
  • , (comma)

Must be different from thousandSeparator and functionArgSeparator.

default '.'


# precisionEpsilon

precisionEpsilon: number

Defined in src/Config.ts:322 (opens new window)

Sets how far two numerical values need to be from each other to be treated as non-equal.

a and b are equal if all three of the following conditions are met:

  • Both a and b are of the same sign
  • abs(a) <= (1+precisionEpsilon) * abs(b)
  • abs(b) <= (1+precisionEpsilon) * abs(a)

Additionally, this option controls the snap-to-zero behavior for additions and subtractions:

  • For c=a+b, if abs(c) <= precisionEpsilon * abs(a), then c is set to 0
  • For c=a-b, if abs(c) <= precisionEpsilon * abs(a), then c is set to 0

default 1e-13


# precisionRounding

precisionRounding: number

Defined in src/Config.ts:332 (opens new window)

Sets calculations' precision level.

Numerical outputs are rounded to the precisionRounding number of digits after the decimal.

default 14


# smartRounding

smartRounding: boolean

Defined in src/Config.ts:358 (opens new window)

When set to false, no rounding happens, and numbers are equal if and only if they are of truly identical value.

For more information, see precisionEpsilon.

default true


# thousandSeparator

thousandSeparator: "" | "," | " " | "."

Defined in src/Config.ts:373 (opens new window)

Sets a thousands separator symbol for parsing numerical literals.

Can be one of the following:

  • empty
  • , (comma)
  • (empty space)

Must be different from decimalSeparator and functionArgSeparator.

default ''


# String

# accentSensitive

accentSensitive: boolean

Defined in src/Config.ts:41 (opens new window)

When set to true, makes string comparison accent-sensitive.

Applies only to comparison operators.

default false


# caseFirst

caseFirst: "upper" | "lower" | "false"

Defined in src/Config.ts:73 (opens new window)

When set to upper, upper case sorts first.

When set to lower, lower case sorts first.

When set to false, uses the locale's default.

default 'lower'


# caseSensitive

caseSensitive: boolean

Defined in src/Config.ts:61 (opens new window)

When set to true, makes string comparison case-sensitive.

Applies to comparison operators only.

default false


# ignorePunctuation

ignorePunctuation: boolean

Defined in src/Config.ts:190 (opens new window)

When set to true, string comparison ignores punctuation.

default false


# localeLang

localeLang: string

Defined in src/Config.ts:234 (opens new window)

Sets the locale for language-sensitive string comparison.

Accepts IETF BCP 47 language tags.

default 'en'


# matchWholeCell

matchWholeCell: boolean

Defined in src/Config.ts:243 (opens new window)

When set to true, function criteria require whole cells to match the pattern.

When set to false, function criteria require just a subword to match the pattern.

default true


# useRegularExpressions

useRegularExpressions: boolean

Defined in src/Config.ts:437 (opens new window)

When set to true, criteria in functions (SUMIF, COUNTIF, ...) are allowed to use regular expressions.

default false


# useWildcards

useWildcards: boolean

Defined in src/Config.ts:444 (opens new window)

When set to true, criteria in functions (SUMIF, COUNTIF, ...) can use the * and ? wildcards.

default true