After fixing some migration issues I run into the following error message after all errors in Mendix itself are fixed.
“BigDecimal cannot be converted to double”
It comes from .java we built to do some Math in our Modules. For example: ‘Math.exp’
This function can only take a double variable and not a BigDecimal.
After I have output I try to convert it back to a BigDecimal so I can output it to Mendix using ‘BigDecimal.valueOf’
Still I keep getting errors. Any tips?
Thanks for looking
Did you try to use the getDoubleValue() method provided by BigDecimal class?