Skip to content

Add signum #320

@Azmisov

Description

@Azmisov

Would be nice to add this:

// returns +/-1 giving the number's sign, except when value is zero, in which +/-0 is returned
P.signum = function () {
    return !!this.c && this.c[0] == 0 ? this.s*0 : this.s;
};

(May be a better way to just return the signed zero value)

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