java - BigDecimal assign operator -
I have a problem pointing to one big decimal value
I try to create one I am having a bigger decimal floating and add 0 to another big decimal
BigDicale temp = new bigdiskim (0); DropStartValue = temp.add (NewCentValue);
However, I only want to conduct bus operations over the big decades:
dropStartValue = newCounterValue
You have not specified the type of either dropStartValue
or newCounterValue
. If they are both bigidiquamels, then it should be OK:
dropStartValue = newCounterValue;
Note that although only creating both variables, see the same object, it is safe because BigDecimal
itself is irreversible.
If it is not working for you, please describe the problems you are seeing (exception - collection-time errors?).
Comments
Post a Comment