Larry Meadors <larry.meadors <at> gmail.com> writes:

> 
> What I mean is if you set the scale on the object, is the real value there?
> yourBigDecimal.setScale(2);
> Larry



Where I need to set this? In my value object?

I have a Value object as :

public class FinancialStatus {

BigDecimal financialSocialsecurity;

public FinancialStatus(Udir3Form udir3)
{
setFinancialSocialsecurity(new BigDecimal(udir3.getFinSS()));
}

public void setFinancialSocialsecurity(BigDecimal decimal) {
                
        financialSocialsecurity = decimal.setScale(2);
}

public BigDecimal getFinancialSocialsecurity() {                
        return financialSocialsecurity;
}

}

Thanks,
shilpa




Reply via email to