Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

converting radix-specified constants

raov
Beginner
652 Views
CVF and IVF support the nonstandard Fortran 95 statement
integer, parameter :: i=#80000000
but several other compilers do not. Is there a standard F95 equivalent?Thanks.
0 Kudos
3 Replies
TimP
Honored Contributor III
652 Views
z'80000000'

Shown as the preferred form in your IVF documentation.
The most common form since long before f90 standardized it:
http://csit1cwe.fsu.edu/extra_link/xlf/lr33.HTM

Mighty strange that the Compaq on-line document from 2001 doesn't even show the standard version.
0 Kudos
david_jones
Beginner
652 Views
.... but did you look under "Hexadecimal Constants" ?
0 Kudos
Steven_L_Intel1
Employee
652 Views
Tim, the standard syntax is described in the chapter with the rest of the constants. See here.
0 Kudos
Reply