| ▲ | microgpt 6 hours ago | |||||||
Customer was charged $0.995 after fees, how to represent in your data model with integer cents? | ||||||||
| ▲ | lxgr 4 hours ago | parent | next [-] | |||||||
You'll have to decide when and how to round. Keeping individual billing items at high precision and rounding after summing them up can work; defining and documenting a rounding policy (or complying with whatever's legally required in your jurisdiction/domain) and rounding each individual billed item can as well. | ||||||||
| ▲ | denismenace an hour ago | parent | prev | next [-] | |||||||
Currency: USD Amount: 99500 Decimals: 5 | ||||||||
| ▲ | snsnsjjsjsiisa 3 hours ago | parent | prev | next [-] | |||||||
You use 1/1000th or 1/10000th or whatever you need. You do not need “cents”. | ||||||||
| ▲ | xprnio 5 hours ago | parent | prev [-] | |||||||
Round it up | ||||||||
| ||||||||