Add more text
This commit is contained in:
parent
f8a6148ac7
commit
33b2f14cb8
@ -213,8 +213,11 @@ end program hello
|
|||||||
|
|
||||||
<p class="mb-6"><code-tag>logical</code-tag> is a boolean. It's either true or false. But a funny thing with the logical type in
|
<p class="mb-6"><code-tag>logical</code-tag> is a boolean. It's either true or false. But a funny thing with the logical type in
|
||||||
Fortran, compared to other languages, is that you can define the size of it. The logical type supports the
|
Fortran, compared to other languages, is that you can define the size of it. The logical type supports the
|
||||||
<code-tag>kind(n)</code-tag> modifier.</p>
|
<code-tag>kind(n)</code-tag> modifier.<br><br>
|
||||||
|
|
||||||
|
A good reason for the different sized logical, is optimization. Some systems handles larger object better than smaller,
|
||||||
|
or some systems handles smaller objects better. It all depends on the architecture.
|
||||||
|
</p>
|
||||||
|
|
||||||
<code-tag>main.f90</code-tag>
|
<code-tag>main.f90</code-tag>
|
||||||
<div class="font-mono shadow-lg shadow-slate-500 p-2 mb-6">
|
<div class="font-mono shadow-lg shadow-slate-500 p-2 mb-6">
|
||||||
|
Loading…
Reference in New Issue
Block a user