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

How to use DecimalNumberBehaviorType? #78

Open
jyunglai opened this issue Jun 1, 2017 · 0 comments
Open

How to use DecimalNumberBehaviorType? #78

jyunglai opened this issue Jun 1, 2017 · 0 comments

Comments

@jyunglai
Copy link

jyunglai commented Jun 1, 2017

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant