SimCon logo

SimCon - Fortran Analysis, Engineering & Migration

  FPT Reference ManualDownloadsLicensingHome

 
 
 
 
 
FPT - Converting Fortran HEX and Octal Numbers
 
HEX and Octal Numbers

FPT converts hexadecimal and octal numbers between the formats:

Fortran 90 / Salford / DEC / IBM

Z'FFFF' O'177777'

DEC / IBM

'FFFF'X '177777'O

DEC / IBM

'FFFF'Z

Compaq / HTML

#FFFFFF

Compaq

16#FFFFFF 8#177777

DEC / IBM / Gould-SEL

X'FFFF'

Intel

#FFFFH #177777O

Gould-SEL HEX

4ZFFFF  

TopExpress

?'FFFF'X ?'177777'O

PDP11 / VAX Compatibility Octal

 

"177777

FPT reads hex and octal numbers in all of these formats. By default, the formats are not changed in the FPT output files. The commands to change them systematically throughout the code are:

% change hex numbers
% change octal numbers

Note that it may be necessary to convert HEX and octal numbers to legacy formats for regression testing of code in migration.

Copyright ©1995 to 2015 Software Validation Ltd. All rights reserved.