I am trying to use the DDMathParser in my application, and am having difficulty in getting it to work with % symbol as percent, instead of modulo.
The wiki advises the following -
The % sign is usually interpreted as the modulo operator. However, DDMathParser.h defines a compile-time switch (DD_INTERPRET_PERCENT_SIGN_AS_MOD) that allows you to change it to be interpreted as a percentageI
I added this define in the DDMathParser.h , but it hasn't worked. expressions are still calculated as modulo, and this is not the result i would like.
Does anybody have any experience of this, and know specifically how to set this up?
Please advise