first implementation of floatingpoint arithmetic operations