You can't use BigDecimal either. There are libraries whose whole purpose is just to exactly reproduce COBOL arithmetic, eg. the IBM Decimal Arithmetic Library.
Wow, their Java code example [0] makes COBOL look elegant and terse by comparison.
[0] https://community.ibm.com/community/user/blogs/gregory-cerne...
Wow, their Java code example [0] makes COBOL look elegant and terse by comparison.
[0] https://community.ibm.com/community/user/blogs/gregory-cerne...