Skip to content

Add helper functions #51

@kloining

Description

@kloining

Since Decimal is a final class, we cannot extend the class with custom methods.
compareTo() gives us a comparison feature, but it's taking quite some time to get our minds wrapped around it every time.

It would be great with some helper functions:
greaterThan($other)
lessThan($other)
equalTo($other)
greaterThanOrEqualTo($other)
lessThanOrEqualTo($other)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions