Working with decimal numbers?
-
Hello, I would like to ask, if is possible to set the plugin to operate with decimal numbers rather than integers?
Why?
I am making some kind of food delivery and need to besafe, user can have a “credit” on his account. It means, user will order the order for 100€, however the deliverer is not able to buy exactly 2 kilograms of apples (he bought for example 1949 grams). This is a difference between the reality and the order. So shop needs to be able to add some credit to user. I need to besafe the credit will be delivered in euros and eurocents.
Now I can set the 1€ == 100 points, but I am not able to add for example 1,49€ to user. I can add only the 149 points (it means 149 eurocents, so 1,49€). That’s correct. But is there any way how to display points / 100 as decimal number for each user?Important is, the user should see the amount in euro + eurocents rather in eurocents only. Thank you
The topic ‘Working with decimal numbers?’ is closed to new replies.