Skip to content

SignedIntegerToInteger issue. #14

Description

@ryanayearsley

When attempting to convert signed integers, negatives don't convert correctly.

I'm using the signingType = CopyBookFieldSigningType.LAST_BYTE_EBCDIC_BIT5 (all others throw an exception)

and the annotation
@CopyBookLine("05 IMINVCHG-QTY PIC S9(07).")

Example 1: Positive
input: 000000B
output (expected): 2
output: 2

Example 2: Negative
input: 000000K
output (expected): -2
output: 11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions