GK in the UK
Registered User.
- Local time
- Today, 08:46
- Joined
- Dec 20, 2017
- Messages
- 274
A long time ago as a total novice I made my price fields as Currency which gives me prices to 4 decimal places of one UK pound.
How can I increase the decimal places stored ? I need up to 5 for prices, and possibly more for another function, with total precision.
Looking at the table design, I see I can define a Long Integer and specify the number of places. But isn't a long integer 4 bytes ? Don't think that will do it.
Can I change Currency to some other 8-byte type but with different decimals ?
I have a solution in my head which is probably me over-thinking it as usual. Multiply the user-keyed value by 10 (or more) and save it to the table. I suspect someone has a better solution.
How can I increase the decimal places stored ? I need up to 5 for prices, and possibly more for another function, with total precision.
Looking at the table design, I see I can define a Long Integer and specify the number of places. But isn't a long integer 4 bytes ? Don't think that will do it.
Can I change Currency to some other 8-byte type but with different decimals ?
I have a solution in my head which is probably me over-thinking it as usual. Multiply the user-keyed value by 10 (or more) and save it to the table. I suspect someone has a better solution.