RMNLIB |
(CONVIP) |
FSTD |
SUBROUTINE CONVIP( ip, p, kind, mode, string, flag)
integer ip, kind, mode real p character *(*) string logical flag
DESCRIPTION Coding/decoding P from/to IP for IP1,IP2,IP3 needed to read/write a record on a standard RPN file.
NOTE: code can come in 2 formats: oldstyle or newstyle
Authors: N. Ek et B. Dugas - March 1996
Modified: Several times by M. Valin, M. Lepine and B. Dugas since then
ARGUMENTS
Input | |
MODE | mode of operation
|
STRING | value of format to be used for writing out P if FLAG=TRUE |
FLAG | .TRUE. to write P in the format given in STRING |
Input/Output | |
IP | coded value: input if MODE = -1, output if MODE > 0 |
P | real value: input if MODE > 0, output if MODE = -1 |
KIND | kind of "P": input if MODE > 0, output if MODE =
-1. kind > 4 values are in only available for NEWSTYLE coding. Attempting to code any of these with MODE=+3 will result in an error.
|
EXAMPLE call convip( ip1 , 1., 3, 1, etiket_S, .false. ) call convip(na(i), rna(i), kind,-1, blk_S,.false.)
See utilities: r.ip1, ip1newstyle
Return to RPN Libraries home page