Bigdecimal, Java.
point, they do not handle real values exactly. This is a critical issue for many FPGA designs. In actuality, integer or fixed point numbers must be used because they can be directly and easily synthesized into hardware. As you can see, it’s a straightforward math, and you already know the answer.