Fixed-point operators

This class of operators covers all the formats whose number sets are $F(e) = \{m \times 2^e\}$. The first parameter selects the weight of the least significant bit. The second parameter selects the rounding direction.

fixed< lsb_weight, rounding_direction >(...)

Rounding to integer is a special case of fixed point rounding of weight 0. A syntactic shortcut is provided.

int< rounding_direction >(...)