aspose file tools
The moose likes Java in General and the fly likes Convert a COBOL trailing sign numeric to BigDecimal Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Convert a COBOL trailing sign numeric to BigDecimal" Watch "Convert a COBOL trailing sign numeric to BigDecimal" New topic
Author

Convert a COBOL trailing sign numeric to BigDecimal

Lisa Gomez
Greenhorn

Joined: Nov 10, 2009
Posts: 1
How does one go about converting a COBOL trailing sign numeric into a BigDecimal?

I have a COBOL trailing sign numeric like so: 00000123455-
I want to convert this to a BigDecimal resulting in -1234.55

I've been able to successfully convert the opposite way, BigDecimal to COBOL trailing sign, using NumberFormat and DecimalFormat with a format string like so '000000000.00+;000000000.00-'

 
jQuery in Action, 2nd edition
 
subject: Convert a COBOL trailing sign numeric to BigDecimal
 
Similar Threads
Big Decimal issue
BigDecimal
Converting Cobol datatype
Converting to Float
Cobol Conversion to Java