Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor(3F)

floor(3M)



abs(3F)                                                   abs(3F)



NAME
     abs, iabs, dabs, cabs, zabs, cdabs, jiabs, iiabs - Fortran
     absolute value

SYNOPSIS
     integer i1, i2
     integer*2 j1, j2
     real r1, r2
     double precision dp1, dp2
     complex cx1
     double complex dx1

     r2 = abs(r1)

     i2 = abs(i1)
     i2 = iabs(i1)
     i2 = jiabs(i1)

     j2 = abs(j1)
     j2 = iabs(j1)
     j2 = iiabs(j1)

     dp2 = abs(dp1)
     dp2 = dabs(dp1)

     r1 = abs(cx1)
     r1 = cabs(cx1)

     dp1 = abs(dx1)
     dp1 = zabs(dx1)
     dp1 = cdabs(dx1)

DESCRIPTION
     abs is the family of absolute value functions.  iabs returns
     the integer absolute value of its integer argument.  dabs
     returns the double-precision absolute value of its double-
     precision argument.  cabs returns the complex absolute value
     of its complex argument.  zabs and cdabs return the double-
     precision absolute value of their double-complex argument.
     The generic form abs returns the type of its argument,
     except for complex arguments, in which case it returns the
     real type corresponding in precision to its argument.

     The functions jiabs, iiabs, and cdabs have been included to
     provide compatibility with other vendors and are not recom-
     mended for general use.

SEE ALSO
     floor(3F), floor(3M).






Page 1                        CX/UX Hf77 Fortran Reference Manual



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026