Parser for signed overpunch values?

前端 未结 7 1387
南旧
南旧 2021-01-06 01:19

I am working with some old data imports and came across a bunch of data from an external source that reports financial numbers with a signed overpunch. I\'ve seen alot, but

7条回答
  •  渐次进展
    2021-01-06 01:49

    I just wanted to chime in here, as I have written a class to handle these. I wrote it before I knew the name "Signed Overpunch", so I called it "packed-sign". The advantage of my approach is that it is actually a Java NumberFormatter, so that it is easy to use with any framework that uses java.lang.Number or java.text.NumberFormat Anyone with more experience with dealing with these signed overpunch numbers, please feel free to open a pull request to make my implementation more compatible with different encodings/variations etc. GitHub Repo

提交回复
热议问题