Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg : conversion from BigDecimal to Decimal

Hi All,

I have a BigDecimal value in my application . I want to change it to decimal value. What is the method to be used and what is the procedure?

Thanks in advance.

Former Member
Former Member replied

Hi Bharath,

I think You want to convert BigDecimal to a double valueI (Since No 'Decimal' type is there in java)

Trythe method,

public double bigDecimalToDouble( java.math.BigDecimal bigDecimalVal )
    //@@begin bigDecimalToDouble()
    double val1=Double.parseDouble(""+bigDecimalVal);
    return val1;

let me know whether oit is useful for you.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question