java mendixfloat vs mendixcurrency

0
Hi, I have a java question, what is exactly the difference between the mendixfloat type and the mendix currency type. If I cast the first to Double everything runs smooth, when I cast the mendixcurrency I get a castexception. This is the code: if (value instanceof MendixCurrency) { return getFormattedNumber(context, (Double) value, 2, 20,true); (CASTEXCEPTION) if (value instanceof MendixFloat) { return getFormattedNumber(context, (Double) value, 2, 20,false); } NO Exception
asked
0 answers