Skip to content
This repository was archived by the owner on Jul 2, 2018. It is now read-only.
This repository was archived by the owner on Jul 2, 2018. It is now read-only.

How to use DecimalNumberBehaviorType? #78

@jyunglai

Description

@jyunglai

This might be a simple question. I'm trying to figure out how to change the behavior of the Money class. Usually with NSDecimalNumber you would create a handler and apply the behavior. I seen to be having a hard time doing so with this class. Of course, I'm probably doing something wrong.

Example:
let cost:Money = 200.00
let num = 3
let each = cost / 3

If I want to round down "each", how should I do so?

Thanks!

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