Show number without decimals


I’ve been counting with a register. Although all the numbers that have been added, have no decimals, the register is always shown with .0. What is the easiest way to not show the decimal (as I’m counting with the amount of shares, it’s impossible to have half a share)?


Hi @Bart_Verhaeghe,

To show numbers without decimals, you should add ‘| integer’ to your code, e.g.:

{% $0+input %}
{% $0+input custom.value.two %}
{% $0+input custom.value.three %}
{{ $0 | integer }}

This way the register will be rounded on the first unit.

Hope this answers your question!

Kind regards,

Hi Robin,

This works great!