I have a webform where I am using the Twig Computed module to calculate an amount. It is simple and straight forward: I have a field that captures the amount and I'm using Twig to multiply it to find the fee; the fee amount is a fixed rate
The Computed Value/Markup is {{ data['license_amount']|number_format(2) * 0.019 }}
. It works when data['license_amount']
is lower than 999; it shows a wrong total when data['license_amount']
is higher than 999.
If the amount is 500 the value is 9.5 as it should.
If the amount is 5000 the value is returned as 0.095