J
James Martin
I'm supporting a database that is comprised largely of fields and variables
with the data type Single. Over the years, the client's needs have changed,
so occasionally I have to change some of these fields and variables to
Double. This doesn't happen often, but once in a while, calculations will be
a little off and it will be because they are getting larger values in their
raw data than they ever anticipated. When this happens, changing the
relevant fields and associated variables to Double has solved the problem.
I'm considering just changing everything from Single to Double to prevent
more of these kinds of problems in the future. For that matter, I'm
considering only using Double from now on in any new database, just to avoid
the kind of minute precision errors that occasionally crop-up with Single
when raw data is unanticipatedly small or large.
Is there any compelling reason to use Single anymore? I realize that at one
time, memory concerns might have been an issue. But is there a good reason
to use Single today? Specifically, I'm wondering if there is any performance
difference between the two.
Thanks in advance.
James
with the data type Single. Over the years, the client's needs have changed,
so occasionally I have to change some of these fields and variables to
Double. This doesn't happen often, but once in a while, calculations will be
a little off and it will be because they are getting larger values in their
raw data than they ever anticipated. When this happens, changing the
relevant fields and associated variables to Double has solved the problem.
I'm considering just changing everything from Single to Double to prevent
more of these kinds of problems in the future. For that matter, I'm
considering only using Double from now on in any new database, just to avoid
the kind of minute precision errors that occasionally crop-up with Single
when raw data is unanticipatedly small or large.
Is there any compelling reason to use Single anymore? I realize that at one
time, memory concerns might have been an issue. But is there a good reason
to use Single today? Specifically, I'm wondering if there is any performance
difference between the two.
Thanks in advance.
James