|
|
|
|
|
by taeric
85 days ago
|
|
Isn't that more of using a float to represent the number? Would be akin to trying to represent .5. Which, if your goal is to represent decimals, you are best off not using floats. Granted, just storing it as a 32 bit integer is probably difficult for most uses. BCD just isn't common for most programmers. (Or fixed point, in general.) |
|
But any kind of calculation will involve a great deal of trigonometry, square roots, and the like. It is just easier to use floating point. Examples:
https://en.wikipedia.org/wiki/Geographic_coordinate_conversi...
https://en.wikipedia.org/wiki/Vincenty%27s_formulae
https://gist.github.com/govert/1b373696c9a27ff4c72a