Mendix 8.0.0 Java question for Math function - Mendix Forum

Mendix 8.0.0 Java question for Math function

2

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

 

 

 

asked
1 answers
2

Did you try to use the getDoubleValue() method provided by BigDecimal class?

answered