This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fortran] Committed fix for FLOAT intrinsics


Steve Kargl wrote:
I've committed the following patch under the "Obviously
correct" rule to both trunk (3 days ago) and 4.1 (today).
This fixes a regression with respect to g77.
[...]
+@node FLOAT
+@section @code{FLOAT} --- Convert integer to default real
+@findex @code{FLOAT} intrinsic
+@cindex floor
+
+@table @asis
+@item @emph{Description}:
+@code{FLOAT(I)} converts the integer @var{I} to a default real value.

It also occurs to me that this should probably reference the standard's REAL function, which provides a superset of the same functionality.


Perhaps add the following to the end of the extant description: "This non-standard intrinsic is provided for compatibility with legacy code. New code should use the standard @code{REAL} intrinsic."

(Apologies for not thinking of this before I sent the previous email!)

- Brooks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]