![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
For dollar/cents amounts in the billions I've been going on the assumption that Double is the only game in town. Ditto share amounts in the billions with up to 4 decimal places. Bad assumptions? |
#3
| |||
| |||
|
|
Er, isn't currency going to be able to hold that, too? It's only the integer part that matters, right? According to the Access help file, the max for currency is over 922 trillion. |
|
If you have a client dealing in that kind of money, I wanna piece of the job! |
#4
| |||
| |||
|
|
Per David W. Fenton: Er, isn't currency going to be able to hold that, too? It's only the integer part that matters, right? According to the Access help file, the max for currency is over 922 trillion. In 2003, the only types I see are: - Byte - Integer - Long Integer - Single - Double - Replication ID - Decimal I was thinking maybe decimal, but it seems like I've tried it before and ran into issues. If you have a client dealing in that kind of money, I wanna piece of the job! Big mutual fund outfits. It's good work in that I'm such a miniscule piece of such a humongous pie that they don't worry about the nickels and dimes at billing time. OTOH, mess up and put something bad into production and there's Hell to pay. |
#5
| |||
| |||
|
|
Those are all the number field types. Currency is really a number field (Decimal with four places after the decimal point) |
#6
| |||
| |||
|
|
Per John Spencer: Those are all the number field types. Currency is really a number field (Decimal with four places after the decimal point) Is currency subject to the floating-point arithmetic issues where, if you query a few thousand records whose amounts actually net out to zero, you can get something like .00000000043656 instead of zero? |
#7
| |||
| |||
|
|
It is also a useful data type sometimes for non-monetary data when the 4-digit decimal accuracy is helpful. But you then do have to override the default formatting as currency. |
#8
| |||
| |||
|
|
Per David W. Fenton: It is also a useful data type sometimes for non-monetary data when the 4-digit decimal accuracy is helpful. But you then do have to override the default formatting as currency. That's what I was thinking for shares. Has anybody actually done that? I'm thinking maybe there might be some gotcha lurking.... -- PeteCresswell |
![]() |
| Thread Tools | |
| Display Modes | |
| |