make file write work with floats
Fix inplace operators with floats