datatype exchange for float and int