Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 2 of 2 total |
Rounding Errors in DBISAM |
Tue, Mar 25 2008 11:45 PM | Permanent Link |
Phil Read | I have read through all the previous posts on rounding errors...
Tried changing my databases Currency fields all to BCD and then changing all parts in the code to use the Currency type... Still getting rounding errors, anyone have this problem? Funny this is I had a client using DBISAM build 4.26 who had a rounding error of 0.01 cent, and when I tried his data on my PC using 4.26 the problem was not there, so I upgraded his DBISAM version and his problem went away. Has something changed in 4.26 that would effect rounding? Anyway my current rounding problem is in 4.26 so anyone who can help I would really appreciate it. Thanks |
Wed, Mar 26 2008 7:25 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Phil,
<< Still getting rounding errors, anyone have this problem? Funny this is I had a client using DBISAM build 4.26 who had a rounding error of 0.01 cent, and when I tried his data on my PC using 4.26 the problem was not there, so I upgraded his DBISAM version and his problem went away. Has something changed in 4.26 that would effect rounding? >> No. Did you try the exact same operation with the exact same data on your machine ? Is it possible that you've still got some floating-point calculations involved somewhere in your code ? Usually, this type of issue is related to there still being an implicit cast to a float during a function call or multiplication/division that ends up producing a floating-point result. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Tuesday, April 30, 2024 at 03:55 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |