Skip to content

Add helper functions #51

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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