*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ftn/sign (3)              
Title
Content
Arch
Section
 

Contents


SIGN(3F)							      SIGN(3F)


NAME    [Toc]    [Back]

     sign, isign, iisign, jisign, dsign, qsign - FORTRAN transfer-of-sign
     intrinsic function

SYNOPSIS    [Toc]    [Back]

     integer i,	j, k
     integer*2 ii1, ii2, ii3
     integer*4 ji1, ji2, ji3
     real r1, r2, r3
     double precision dp1, dp2,	dp3
     real*16 qp1, qp2, qp3

     k = isign(i, j)
     k = sign(i, j)

     ii3 = iisign(ii1, ii2)
     ii3 = sign(ii1, ii2)

     ji3 = jisign(ji1, ji2)
     ji3 = sign(ji1, ji2)

     r3	= sign(r1, r2)

     dp3 = dsign(dp1, dp2)
     dp3 = sign(dp1, dp2)

     qp3 = qsign(qp1, qp2)
     qp3 = sign(qp1, qp2)

DESCRIPTION    [Toc]    [Back]

     isign returns the magnitude of its	first argument with the	sign of	its
     second argument.  It accepts either integer*2 or integer*4	arguments and
     the result	is the same type.  iisign and jisign take integer*2 and
     integer*4 arguments, respectively.	 sign, dsign, and qsign	are isign's
     real, double-precision, and real*16 counterparts, respectively.  If the
     value of the first	argument of isign, sign, dsign,	or qsign is zero, the
     result is zero.  The generic version is sign and will devolve to the
     appropriate type depending	on its arguments.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
alog IRIX FORTRAN natural logarithm intrinsic function
aint IRIX FORTRAN integer part intrinsic function
conjg IRIX FORTRAN complex conjugate intrinsic function
conjg IRIX FORTRAN complex conjugate intrinsic function
mod IRIX FORTRAN remaindering intrinsic functions
dim IRIX FORTRAN positive difference intrinsic functions
strcmp IRIX FORTRAN string comparison intrinsic functions
lge IRIX FORTRAN string comparison intrinsic functions
models IRIX Describes mathematical representation models for CF90 and MIPSpro 7 Fortran 90 compiler intrinsic procedures
dprod IRIX FORTRAN double precision and quad precision product intrinsic functions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service