Ranx99
5 months ago
715
4
Tips

Which money datatype to use ?

Posted 5 months ago by Ranx99

If I am building an e-commerce application, which datatype is best to for price field?

  • should I use integer and store everything as cents? or use decimal?

  • is there any disadvantage of using decimal?

Please sign in or create an account to participate in this conversation.