Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does mean 10.D00 in Fortran?

Tags:

fortran

I have to convert some code from Fortran so doesn't know how what this statement means:

var1 = 10.D00

Can someone explain me what it means?

like image 244
Иван Бишевац Avatar asked Dec 08 '11 17:12

Иван Бишевац


1 Answers

It's just 10.0 in scientific notation with double precision (that's what the D stands for).

See: http://www.fortran.com/F77_std/rjcnf0001-sh-4.html#sh-4.2.1:


4.5.1 Double Precision Exponent.

The form of a double precision exponent is the letter D followed by an optionally signed integer constant. A double precision exponent denotes a power of ten. Note that the form and interpretation of a double precision exponent are identical to those of a real exponent, except that the letter D is used instead of the letter E.


like image 108
Paul R Avatar answered Oct 22 '22 19:10

Paul R