Skip to content

BigDecimal problem #609

@sergioszy

Description

@sergioszy

Hi,
We have been handling this problem. But I think that it is convenient to correct it.
This statement gives an error:
varDec = new BigDecimal( 123.456789 ).setScale( 2, RoundingMode.HALF_UP );
// Error: Evaluation Error: Error in method invocation: Method setScale(int, RoundingMode) not found in class'bsh.Primitive'

It is annoying when it occurs in class attributes or variables that have to be BigDecimal, as in use cases in jdbc and jpa.
It forces us to duplicate the variables and have a special treatment for those that are BigDecimal or BigInteger.
I think it has to do with the improvement of treating BigDecimal and BigInteger as primitives.

Thanks in advance
Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions