I ran into a database where I was looking for a particular value to SUM
... in this case it was distance in miles. I had a hell of a time using my "search all values in database" procedure to find how the frontend displayed value was stored in the backend database.
That's until I realized they stored miles as an integer
and displayed it as a decimal
.
For instance:
Distance in DB: 2368 (as an
INT
)Distance in Frontend: 23.68
Why would someone do this? Is there some sort of performance advantage?
Edit: Also, this is a major globally used piece of software used for delivery routing... so I'm wondering if they know something I don't.
Another note... they do store other values as FLOAT
with the same exact 2-point precision they are displaying distance as.