Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store amounts as strings #195

Open
psrpinto opened this issue Oct 26, 2016 · 3 comments
Open

Store amounts as strings #195

psrpinto opened this issue Oct 26, 2016 · 3 comments
Milestone

Comments

@psrpinto
Copy link
Collaborator

See #110 #94 #146 #141

http://verraes.net/2011/04/fowler-money-pattern-in-php/

@psrpinto psrpinto added this to the 2.0.0 milestone Oct 26, 2016
@ruudk
Copy link
Contributor

ruudk commented Jan 22, 2017

Don't you mean integers?

@psrpinto
Copy link
Collaborator Author

I do mean strings. Using integers presents problems since there's a maximum value that can be stored. I still need to research more about this subject but for the moment I'm convinced using strings is the way to go.

Any thoughts?

@ruudk
Copy link
Contributor

ruudk commented Jan 27, 2017

I see, we use int(11) which is not a problem for us because we do small money transactions.

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

No branches or pull requests

2 participants