Python scipy / Fortran : float64, real, double?
<p>I am writing a front-end in Python for a Fortran library. The Python modules are supposed to work on both 32-bit and 64-bit machines; for windows, linux and mac. </p>

<p>I would like to get some clarity on the byte widths of some of the data types:</p>

<p>[1] Say a variable in the Fortran function is declared as "real". Is this always 8-byte wide for both 32-bit and 64-bit machines? </p>

<p>[2] What is the difference between scipy.float64 and scipy.double? Are they identical for all machines?</p>

<p>Reliable answers from experts on this topic would help very much. </p>

<pre><code>In [241]: np.double
Out[241]: numpy.float64


In [246]: x=np.float64(34)
In [247]: x
Out[247]: 34.0
In [248]: x.nbytes
Out[248]: 8
</code></pre>

<p><a href="http://docs.scipy.org/doc/numpy/reference/c-api.config.html" rel="nofollow">http://docs.scipy.org/doc/numpy/reference/c-api.config.html</a>
Docs for system configuration constants</p>

<p><a href="http://docs.scipy.org/doc/numpy/user/misc.html#interfacing-to-fortran" rel="nofollow">http://docs.scipy.org/doc/numpy/user/misc.html#interfacing-to-fortran</a></p>

<p><a href="http://docs.scipy.org/doc/numpy-dev/f2py/" rel="nofollow">http://docs.scipy.org/doc/numpy-dev/f2py/</a></p>

python numpy scipy data-type-conversion