An Example of How The Expression Editor Needs Enhancing

So I’m trying to do some financial maths on the Server Side…

and I’m up against two issues:

  1. I cannot round to 2 decimal places as financial maths requires.
  2. There appears no way to have brackets to make things happen in the right order.

So my example I want to create is this:

{{ ($_POST.amount_payment_local.toNumber() / exchange_rate).round(2) }}

But without the rounding I need to do this:

{{ ($_POST.amount_payment_local.toNumber() / exchange_rate * 100).round() / 100}}

But when I create it in the menu system I get this:

{{$_POST.amount_payment_local.toNumber() / exchange_rate * 100.round() / 100}}

So of course, I can work around it all… but for Wappler to be easy and intuitive, this is an example of where enhancements are needed! :slight_smile:

Community Page
Last updated: