Skip to content

Number values of null vs 0 #38

@stevepridemore

Description

@stevepridemore

@field(offset = 635, length = 5, align = Align.RIGHT, paddingChar = '0')
@FixedFormatDecimal(decimals = 2, decimalDelimiter = '.', useDecimalDelimiter = false)
@FixedFormatNumber(sign = Sign.NOSIGN)

The project I am currently working on has to be able to support numbers with either a null or zero value. For a null value the string for this field would be ' ' and the zero value would be '00000'. I am at a loss of how to do this using fixedformat4j. It would be great if it had a nullChar attribute as well.

@field(offset = 635, length = 5, align = Align.RIGHT, paddingChar = '0', nullChar=' ')
or
@FixedFormatNumber(sign = Sign.NOSIGN, nullChar=' ') if it was just for numbers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions