Quote:
make some math functions that accept vars, convert them to doubles or floats, and return vars back.
That won't help him a bit. It increases the accuracy of the results he gains, but if the result is 0.2 and that is converted back to the var type he gains 0.199 instead again. So the result will loose precision two times. The first time when converting from a string to var and the second time when converting from a double or whatever to var.
The only solution that really helps you is choosing one precise datatype and rewriting the code...
Always learn from history, to be sure you make the same mistakes again...
|