K
K
k91372736722020-05-23 11:32:43
Android
k9137273672, 2020-05-23 11:32:43

What type is better to use to represent money in an online store?

I'm writing an online store for android, I use a regular float, I haven't noticed any problems yet. I think it's worth transferring to BigDesimal. I wonder what others use in their mobile applications

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmtm, 2020-05-23
@k9137273672

It is possible for Long goods, faster and is unlikely to run out, even if you leave a couple of digits for local pennies

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question