Generally, python libraries provide flexibility to play with the number of bits for decimals. I want something similar to quantizer in MATLAB where I can fix total number of bits and number of bits for decimals.
Example: Let's have 8 bit as total no. of bits. Let's fix 6 bits for decimal. There will 1 bit for sign. I will have 1 bit for integer.
So now given 255, the library should be able to quantize it to 1.984375.
I am not able to find any library for this purpose.
Thanks in Advance.