5.3.86 _itofQ31 Function

This function converts a Q31 value into its corresponding floating-point value.

Include

<libq.h>

Prototype

float _itofQ31(_Q31 x);

Argument

x a fixed-point number in Q31 format, which ranges from -231 to 231-1. The value of this argument ranges from -2147483648 to 2147483647.

Return Value

This function returns a floating-point equivalent number. The corresponding floating-point range is -1 to 0.99999996.