![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am trying to perform calculations using some queries about 5 of them in a row...but somehow after calculations...if the answer is supposed to be 100 it gives me 100.00034265.... PLease let me know if there is a way of getting rid of these random numbers being added on... for the number's i am using 'single' as my field datatype with decimal places set to 2 decimal places... PLease advise. Thanks |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thank you Lyle, I've tried that and it is still not rectifying the problem. Any other suggestions? |
#5
| |||
| |||
|
|
Thank you Lyle, I've tried that and it is still not rectifying the problem. Any other suggestions? |
#6
| |||
| |||
|
|
The best solution I've come up with to get around this issue is the one the old Main Frame programmers came up with: "Do all your math as integers." In other words, if you need 2 decimal place precision, multiply your numbers by 100 to get a integer, do the math (don't forget to also multiply by 100 the other numbers in the equation!), then convert back when / as needed. |
![]() |
| Thread Tools | |
| Display Modes | |
| |