Skip to content

What type for monetary values #1958

Answered by JarrodMFlesch
dawidmachon asked this question in Q&A
Discussion options

You must be logged in to vote

@dawidmachon It is generally best practice to store monetary values in the smallest denomination, there are plenty of good articles out there explaining why this is the case.

So personally I would opt to use the number field almost always (storing as cents), and then add a description that displays the amount in a dollar amount.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jacobsfletch
Comment options

Answer selected by dawidmachon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants