Solved
Forum Discussion
MikeTamoush
3 years agoQrew Elite
I mistyped in my post. I should have said I tried {{MyField * .68}} and it would not work.
However, {{MyField * 0.68}} DOES work! Thank you! Turns out that leading zero is important.
------------------------------
Mike Tamoush
------------------------------
MikeTamoush
3 years agoQrew Elite
Any idea the syntax to round the number to 2 decimals?
I tried {{MyField * 0.68 | round(2) }} but this did not work.
------------------------------
Mike Tamoush
------------------------------
- DougHenning13 years agoCommunity Manager
Round to 2 decimals:
{{ "%.02f" | format(MyField * 0.68) }}
------------------------------
Doug Henning
------------------------------- ShaneMiller13 years agoQrew Cadet
You're gonna laugh... well, or cry, depending on how long you've worked on this. go to the outcome fields properties.
Change this to 2 for 2 decimal places:
------------------------------
Shane Miller
------------------------------- ShaneMiller13 years agoQrew Cadet
If you wanted to get fancy and do it in JINJA2 pipelines then plug this in:
{{ (MyField * 0.68)|round(2) }}
------------------------------
Shane Miller
------------------------------