Convert number representation in Float or Double to Q31/Q15/Q7.
There are separate functions for floating-point, Q7, Q15, and Q31 data types.