Skip to content

How to avoid division by zero problem #5

@dhaouadiNej

Description

@dhaouadiNej

//function 1/x return 0 for x=0 !!! How to avoid this
replace line number 315
// if ($op2 == 0) return $this->trigger("division by zero");
//by this
if($op2 == 0){$stack->push(NAN); break;}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions