I3E( ) |
Convert To/From IEEE Format |
1. |
I3E(num[,ERR=stmtref]) | |
2. |
I3E(string$[,ERR=stmtref]) |
num |
Numeric value to convert to 8-byte IEEE format (scientific notation). |
string$ |
8-byte string expression to convert from IEEE format to a numeric value. |
stmtref |
Program line number or statement label to which to transfer control. |
Numeric data, IEEE converted to/from PxPlus internal values.
The I3E( ) function converts data to/from IEEE floating point format and PxPlus internal values. The primary purpose of this function is to allow for the conversion of data between PxPlus and other applications.
Convert from Internal Value to Floating Point
I3E(num[,ERR=stmtref])
If the function is passed a numeric expression, it will return an 8-byte string containing the IEEE floating point value of the number.
Convert from Floating Point to Internal Value
I3E(string$[,ERR=stmtref])
If the function is passed an 8-byte string, the string will be converted to an internal PxPlus numeric value.
! Program to convert values to square roots
open (1,isz=8)"FLTDTA"
I=0
LOOP: \
read record (1,ind=I,err=DONE)F$
F$=i3e(sqr(i3e(F$)))
write record (1,ind=I)F$
I=I+1;
goto LOOP
DONE: \
close (1)
end