Skip to content

Math Eval - allow sign in shorthand sum expression #437

Description

@ProgerXP

Special case: expression with only digits (including hex), radix prefix/suffixes, periods and any ignored symbols (above) is treated as a series of whitespace-separated numbers, which are summed up.

Extend this rule by allowing sign before every valid number:

12,3 -45.6 $78 -10h = 123-45.6+78-16 = 139.40

Update: but 123 -456 could be either a shorthand expression (123 + -456) or a full expression with lacking whitespace (123 - 456). More thought should be put into this feature.

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