Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to initialize a BigDecimal field
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-20-2012 01:09 PM
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.
PayPal, Inc.
Solved! Go to Solution.
Re: How to initialize a BigDecimal field
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
03-21-2012 07:56 AM
i responded in how-to
Re: How to initialize a BigDecimal field
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
03-21-2012 09:35 AM
Thanks for your help.
Credit Risk Analyst
PayPal, Inc.
PayPal, Inc.

