4 ms·
The trick I've seen to deal with this problem is to use a pair of doubles: one for the integer part and one for the fractional part.
by pacman128 6y ago
The trick I've seen to deal with this problem is to use a pair of doubles: one for the integer part and one for the fractional part.
- diffuse_l 6y agoIsn't it simpler to use fixed point in this case?
- vnorilo 6y agoYou can use double-doubles for near-128-bit floating point [1]. It's much more powerful than 53.53 fixed point you mentioned, but more complicated as well. [1] http://web.mit.edu/tabbott/Public/quaddouble-debian/qd-2.3.4-old/docs/qd.pdf http://web.mit.edu/tabbott/Public/quaddouble-debian/qd-2.3.4...