I am trying to read data from an old file format that stores 4-byte IBM floating points. Anyone familiar with this standard? Does it match the Decimal implementation in this package? Here is the IBM page I could find with a _Decimal32 type, which I am assuming is another name for the 4-byte IBM floating point: https://www.ibm.com/docs/en/zos/2.5.0?topic=specifiers-floating-point-types
If Decimal is indeed equal to IBM's _Decimal32, how can I properly consume bytes from an IO stream? Would the usual read method work with Decimal as the second argument?
io = open(file)
read(io, Decimal)
I am trying to read data from an old file format that stores 4-byte IBM floating points. Anyone familiar with this standard? Does it match the
Decimalimplementation in this package? Here is the IBM page I could find with a_Decimal32type, which I am assuming is another name for the 4-byte IBM floating point: https://www.ibm.com/docs/en/zos/2.5.0?topic=specifiers-floating-point-typesIf
Decimalis indeed equal to IBM's_Decimal32, how can I properly consume bytes from an IO stream? Would the usualreadmethod work withDecimalas the second argument?