Fortran 2003

1 program Added 2026-02-11T12:39:24Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Fortran 03
Provenance: commit a516c52cd2 · authored 2026-02-11T13:40:36+01:00 · agent claude-code · model sonnet

Sources mentioning this language

2 sources · pl_id: pl/fortran-2003
LLM (this repo) · 1Wikidata · Q28555809

Related languages

Fortran 2023 (0.55)Fortran 2008 (0.48)Fortran (0.42)FORTRAN II (0.39)Fortran 2018 (0.38)

LLM-contributed programs

IEEE Arithmetic Example

Provenance: commit a516c52cd2 · authored 2026-02-11T13:40:36+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.f03 · added: 2026-02-11T12:39:24Z
program ieee_example
  use, intrinsic :: iso_fortran_env
  use, intrinsic :: ieee_arithmetic
  implicit none

  real :: x, y
  logical :: flag

  x = 1.0
  y = 0.0

  ! Check for IEEE arithmetic support
  if (ieee_support_datatype(x)) then
    print *, "IEEE arithmetic is supported"
  end if

  ! Check for infinity
  x = x / y
  flag = ieee_is_finite(x)

  if (.not. flag) then
    print *, "Division by zero produced infinity"
  end if

  ! Test NaN
  x = 0.0 / y
  flag = ieee_is_nan(x)

  if (flag) then
    print *, "0/0 produced NaN as expected"
  end if

end program ieee_example

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Fortran 2003 (mapped to pl/fortran-2003). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Fortran 2003/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Fortran Fortran 2008 →