Decimal data type

Hi All,

I just discovered that I cannot use + with a decimal.

So I have a formula,

((decimalValue * -1) + 15.687 )* 2048;

Which does not compile, error being,

Operator '+' cannot be applied to operands of type decimal and double.

Any suggestions on how to get the correct result from the above formula

Thanks

Jeff



Answer this question

Decimal data type

  • --Alan---

    Hi,

    Skip the above question. I just change data type to a double and that worked for what I needed.

    Thanks

    Jeff


  • Decimal data type