Skip to content

Negation not working correctly #50

@ptdecker

Description

@ptdecker

Negation is not working correctly:

> (- -4)
-4

The workaround for this is to handle negation as:

> (define (negate x) (* -1 x))
ok
> (negate -4)
4
> (negate 4)
-4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugworkaroundA workaround for this defect exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions