In this example the Vitis HLS ap_fixed
type is used to define an 18-bit variable with
6 bits representing the numbers above the decimal point and 12-bits representing the
value below the decimal point. The variable is specified as signed, the quantization
mode is set to round to plus infinity and the default wrap-around mode is used for
overflow.
#include <ap_fixed.h>
...
ap_fixed<18,6,AP_RND > my_type;
...