double precision

Blitz3D Forums/Blitz3D Programming/double precision

I am working on a program that converts map coordinates back and forward between a lot of different coordinate systems. Doing these convertions a lot of times using floats means that I in every convertion loose a lot of precision, making me end up with coordinates that does not match in the end.

However converting only one single time in the end of the calculations would mean only loosing some centimeters in accuracy instead of meters (I end up with an accuracy of about 11 meters in this specific case).
So by doing everything in a dll and with one single "double to float" convertion I would get a very big improvement in accuracy. And as long as you create banks of 8 bytes for your varibles in Blitz you would be able to use double.
Guess that you would have to implement some more functions than only =+-*/ in order to cover all functions you would need, but I guess it could be done.... and thought that someone already had done this. No need to invent the wheel twice...