Download Blaze Trial
Follow FICO
LinkedIn   Twitter   Youtube
Close To access this section, please choose the Community Neighborhood in which you have the most interest.

» Business Rules Management
» Collections & Recovery
» Fraud Management
» Risk Management
» Scoring
Close To access this section, please choose the Community Neighborhood in which you have the most interest.

» Business Rules Management
» Collections & Recovery
» Fraud Management
» Risk Management
» Scoring
Reply
Contributor
ssah
Posts: 15
Registered: ‎03-13-2012
Accepted Solution

How to initialize a BigDecimal field

Hi,

 

Suppose transactionAmount is a defined as a BigDecimal in the JAVA OM, how to initialize it and give it a default value.

 

Following code gives the error as shown below.

 

transactionAmount = 100.00;

 

 

Error: Explicit cast required to assign a 'real' to a 'BigDecimal' use 'as a BigDecimal'.

 

 

 

Kindly advise.

 

Thanks

Shubham

Credit Risk Analyst
PayPal, Inc.
Valued Contributor
Posts: 114
Registered: ‎10-06-2008

Re: How to initialize a BigDecimal field

i responded in how-to

Contributor
ssah
Posts: 15
Registered: ‎03-13-2012

Re: How to initialize a BigDecimal field

Thanks for your help.

Credit Risk Analyst
PayPal, Inc.