|
What you're describing is called fixed point arithmetic, a super cool technique I wish more programmers knew about. Proper finance related code should use it, but in my experience in that industry it doesn't seem very common unless you're running mainframes. Funnily enough, I've seen a lot more fixed point arithmetic in software rasterizers than anywhere else. FreeType, GDI, WPF, WARP (D3D11 reference rasterizer) all use it heavily. |