Skip to content

Is Decimal equal to 4-byte IBM floating point? #109

Description

@juliohm

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions