blob: b4326155580783aba5b9fa789ba174d47d75b92e [file] [log] [blame]
Fuad Tabbafed62072020-09-23 14:47:51 +01001<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<!-- Copyright (C) 1999-2014 Free Software Foundation, Inc.
4
5Permission is granted to copy, distribute and/or modify this document
6under the terms of the GNU Free Documentation License, Version 1.3 or
7any later version published by the Free Software Foundation; with the
8Invariant Sections being "Funding Free Software", the Front-Cover
9Texts being (a) (see below), and with the Back-Cover Texts being (b)
10(see below). A copy of the license is included in the section entitled
11"GNU Free Documentation License".
12
13(a) The FSF's Front-Cover Text is:
14
15A GNU Manual
16
17(b) The FSF's Back-Cover Text is:
18
19You have freedom to copy and modify this GNU Manual, like GNU
20 software. Copies published by the Free Software Foundation raise
21 funds for GNU development. -->
22<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
23<head>
24<title>The GNU Fortran Compiler: DBLE</title>
25
26<meta name="description" content="The GNU Fortran Compiler: DBLE">
27<meta name="keywords" content="The GNU Fortran Compiler: DBLE">
28<meta name="resource-type" content="document">
29<meta name="distribution" content="global">
30<meta name="Generator" content="makeinfo">
31<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
32<link href="index.html#Top" rel="start" title="Top">
33<link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
34<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
35<link href="Intrinsic-Procedures.html#Intrinsic-Procedures" rel="up" title="Intrinsic Procedures">
36<link href="DCMPLX.html#DCMPLX" rel="next" title="DCMPLX">
37<link href="DATE_005fAND_005fTIME.html#DATE_005fAND_005fTIME" rel="prev" title="DATE_AND_TIME">
38<style type="text/css">
39<!--
40a.summary-letter {text-decoration: none}
41blockquote.smallquotation {font-size: smaller}
42div.display {margin-left: 3.2em}
43div.example {margin-left: 3.2em}
44div.indentedblock {margin-left: 3.2em}
45div.lisp {margin-left: 3.2em}
46div.smalldisplay {margin-left: 3.2em}
47div.smallexample {margin-left: 3.2em}
48div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
49div.smalllisp {margin-left: 3.2em}
50kbd {font-style:oblique}
51pre.display {font-family: inherit}
52pre.format {font-family: inherit}
53pre.menu-comment {font-family: serif}
54pre.menu-preformatted {font-family: serif}
55pre.smalldisplay {font-family: inherit; font-size: smaller}
56pre.smallexample {font-size: smaller}
57pre.smallformat {font-family: inherit; font-size: smaller}
58pre.smalllisp {font-size: smaller}
59span.nocodebreak {white-space:nowrap}
60span.nolinebreak {white-space:nowrap}
61span.roman {font-family:serif; font-weight:normal}
62span.sansserif {font-family:sans-serif; font-weight:normal}
63ul.no-bullet {list-style: none}
64-->
65</style>
66
67
68</head>
69
70<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
71<a name="DBLE"></a>
72<div class="header">
73<p>
74Next: <a href="DCMPLX.html#DCMPLX" accesskey="n" rel="next">DCMPLX</a>, Previous: <a href="DATE_005fAND_005fTIME.html#DATE_005fAND_005fTIME" accesskey="p" rel="prev">DATE_AND_TIME</a>, Up: <a href="Intrinsic-Procedures.html#Intrinsic-Procedures" accesskey="u" rel="up">Intrinsic Procedures</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
75</div>
76<hr>
77<a name="DBLE-_002d_002d_002d-Double-conversion-function"></a>
78<h3 class="section">8.62 <code>DBLE</code> &mdash; Double conversion function</h3>
79<a name="index-DBLE"></a>
80<a name="index-conversion_002c-to-real"></a>
81
82<dl compact="compact">
83<dt><em>Description</em>:</dt>
84<dd><p><code>DBLE(A)</code> Converts <var>A</var> to double precision real type.
85</p>
86</dd>
87<dt><em>Standard</em>:</dt>
88<dd><p>Fortran 77 and later
89</p>
90</dd>
91<dt><em>Class</em>:</dt>
92<dd><p>Elemental function
93</p>
94</dd>
95<dt><em>Syntax</em>:</dt>
96<dd><p><code>RESULT = DBLE(A)</code>
97</p>
98</dd>
99<dt><em>Arguments</em>:</dt>
100<dd><table>
101<tr><td width="15%"><var>A</var></td><td width="70%">The type shall be <code>INTEGER</code>, <code>REAL</code>,
102or <code>COMPLEX</code>.</td></tr>
103</table>
104
105</dd>
106<dt><em>Return value</em>:</dt>
107<dd><p>The return value is of type double precision real.
108</p>
109</dd>
110<dt><em>Example</em>:</dt>
111<dd><div class="smallexample">
112<pre class="smallexample">program test_dble
113 real :: x = 2.18
114 integer :: i = 5
115 complex :: z = (2.3,1.14)
116 print *, dble(x), dble(i), dble(z)
117end program test_dble
118</pre></div>
119
120</dd>
121<dt><em>See also</em>:</dt>
122<dd><p><a href="REAL.html#REAL">REAL</a>
123</p></dd>
124</dl>
125
126
127
128
129
130
131</body>
132</html>