Skip to content
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed

- Fixed the `EDATE` function returning the 28th of February instead of the 29th when the shifted date falls in February of a leap year (e.g. `=EDATE(DATE(2028, 1, 31), 1)` now returns `2028-02-29` instead of `2028-02-28`). [#1781](https://github.com/handsontable/hyperformula/pull/1781)
- Fixed `getCellValue()`, `getSheetValues()` and the other methods that export cell values ignoring the `evaluateNullToZero` option: with the option on, they now return `0` for empty cells instead of `null`. [#1738](https://github.com/handsontable/hyperformula/pull/1738)

## [3.5.0] - 2026-10-09

Expand Down
4 changes: 4 additions & 0 deletions hyperformula/src/ConfigParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ export interface ConfigParams {
decimalSeparator: '.' | ',',
/**
* When set to `true`, formulas evaluating to `null` evaluate to `0` instead.
*
* The same applies to an empty cell read through the API: `getCellValue()`, `getSheetValues()` and the
* other methods that return cell values, as well as the changes passed to the `valuesUpdated` event,
* give `0` for it instead of `null`. `ISBLANK` still treats the cell as blank.
* @default false
* @category Engine
*/
Expand Down
2 changes: 1 addition & 1 deletion hyperformula/src/Exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class Exporter implements ChangeExporter<ExportedChange> {
} else if (value instanceof CellError) {
return this.detailedError(value)
} else if (value === EmptyValue) {
return null
return this.config.evaluateNullToZero ? 0 : null
} else {
return getRawValue(value)
}
Comment thread
Tobiadefami marked this conversation as resolved.
Resolved
Expand Down
Loading