code:
PROGRAM TESTING IMPLICIT NONE real(4) test character(4) buff test = 123 write(buff, 100) test write(*,*) buff test = 123.0 write(buff, 100) test write(*,*) buff test = 123.01 write(buff, 100) test write(*,*) buff test = 123.001 write(buff, 100) test write(*,*) buff 100 FORMAT(A4) END PROGRAM
output:
÷B ÷B ▼♣÷B â ÷B Press any key to continue
thanks!

New Topic/Question
Reply



MultiQuote



|