in reply to Re^4: Reading (the same) data in different ways & memory usage
in thread Reading (the same) data in different ways & memory usage
one thing I found is that all FLOAT (and probably DOUBLE) values are returned as string
That does make a certain amount of sense.
If you converted floats to their binary numeric representation, then you could introduce typical floating point representation errors. If you are going to do math with them in your perl code, then that will happen anyway and you'd have to deal with it.
But if you are only going to display them, or store them into another table somewhere, then returning them as strings means that you don't have to deal with those errors.
Whether that is the reasoning behind it I cannot say, but it could be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Reading (the same) data in different ways & memory usage
by Neighbour (Friar) on Apr 21, 2011 at 08:26 UTC | |
by BrowserUk (Patriarch) on Apr 21, 2011 at 09:13 UTC |