File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ Always write all floating point constants with the ``_dp`` suffix::
8383
8484and never any other way (see also the gotcha
8585:ref: `floating_point_numbers_gotcha `).
86+ Omitting the dot in the literal constant is also incorrect.
8687
8788To print floating point double precision
8889numbers without losing precision, use the ``(es23.16) `` format (see
Original file line number Diff line number Diff line change @@ -61,6 +61,13 @@ And so it is safe to assign integers to floating point numbers without losing
6161any accuracy (but one must be careful about integer division, e.g. ``1/2 `` is
6262equal to ``0 `` and not ``0.5 ``).
6363
64+ The declaration of integer variables with a ``_dp `` suffix does not promote them
65+ automatically to double precision variables. The following literal::
66+
67+ 360_dp
68+
69+ is interpreted as an integer.
70+
6471C/Fortran Interoperability of Logical
6572-------------------------------------
6673
You can’t perform that action at this time.
0 commit comments