add write conversion from double (8b) to real (4b)