Using scientific notation for floating point literals is easy enough in Fortran:
1.5d-10
would mean a double precision (whatever that means under current Fortran compiler settings) floating point value that approximates 1.5*10^-15
.
However, the fusion of the exponent notation and the floating point kind specifier is a bit of an issue. How would one declare this floating point literal when one wants it to have a type of C_DOUBLE
?
I know that this is a bit of a nitpicking issue, but there can be circumstances when double precision will not be the same as C_DOUBLE
.