Answer the question
In order to leave comments, you need to log in
How to store money in int in database?
I wondered how to store money in the database. Most often, it is advised to store in int (multiply, divide by 100)
But if you replenish the account by 0.333 dollars, when multiplied by 100 we get 33.3
As I understand it, in order to make a universal option for all currencies, you need to multiply by 100000000 to take into account even bitcoin?
Answer the question
In order to leave comments, you need to log in
Most often it is advised to store in int
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question