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

Remove Decimals #71

Open
Wilsonilo opened this issue Dec 16, 2016 · 2 comments
Open

Remove Decimals #71

Wilsonilo opened this issue Dec 16, 2016 · 2 comments

Comments

@Wilsonilo
Copy link

I'm sorry for this questions, because the possibility to be simple is high but i've being trying to avoid using decimals and still get them, any help would be really appreciate it.

I basically just implement
let foo = Money(Int(bar))

And then i tried using formatted(withStyle: .none) and all the others, none of them remove the decimal presentation.

@Wilsonilo
Copy link
Author

Happy new year guys!
Sorry to be a pain, but any chance on this?
Thanks!

@Wilsonilo
Copy link
Author

number.formatted(withStyle: .decimal, forLocale: .English(.UnitedStates)) worked for me.

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