Fortran Wiki
dprod

Description

dprod(x,y) returns the product x*y.

Standard

FORTRAN 77 and later

Class

Elemental function

Syntax

result = dprod(x, y)

Arguments

  • x - The type shall be real.
  • y - The type shall be real.

Return value

The return value is of type real(8).

Example

program test_dprod
    real :: x = 5.2
    real :: y = 2.3
    real(8) :: d
    d = dprod(x,y)
    print *, d
end program test_dprod

category: intrinsics