Skip to content

Non uniform null behaviour #830

@avianey

Description

@avianey

Mathjs is having strange behaviour regarding null :

math.eval('null')

returns null

math.eval('null+null')

returns 0 and so does every function call like cos(null) that returns 1
shouldn't the parser return null as long as there's one undefine value in the tree ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions