Skip to content

Possibly bug - FLOOR and FLOOR.MATH  #407

@ArtemBro

Description

@ArtemBro

Sorry I don't use PhpSpreadsheet, but I found this bug in PHPExcel 1.8.1 and maybe it's in PhpSpreadsheet too.

I have .ods file which contains cell with formula FLOOR.MATH
But when I read this file and try to save to .xls I got exception:

Formula Error: Wrong number of arguments for FLOOR() function: 3 given, 2 expected

I found that:
FLOOR has 2 parameters https://support.office.com/en-us/article/floor-function-14bb497c-24f2-4e04-b327-b0b4de5a8886

FLOOR.MATH has 3 parameters https://support.office.com/en-us/article/floor-math-function-c302b599-fbdb-4177-ba19-2c2b1249a2f5

Perhaps there is a bug, and the FLOOR.MATH (with 3 parameters) is recognized as FLOOR (with 2 parameters)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions