Silverfrost Forums

Welcome to our forums

Hex Format for

21 Aug 2014 3:28 #14476

x1 = 12.75

WRITE ( *, 8 ) x1 8 FORMAT ('Hex Value is ', Z16 )

This fails Is there a way around this? Bob

22 Aug 2014 12:01 #14478

The hex format Z16 works with integer types. For a real number, use instead something similar to

write(*,'(Z8)')transfer(x1,integer)
22 Aug 2014 3:36 #14483

Thank you. It worked for me. Bob

Please login to reply.