Error in calculated field with respect to decimal points

Hi Community , I’m trying to create dynamic decimal control which changes the decimal places according to the parameter i’ve created
but when i click on decimal 1, the decimals are changing in the numeric field but there are extra zero’s coming
how Do i resolve it?

Hi @Vysh27,
in you table you are using the test6 field, right?
BR

yes @ErikG ,
When I’m converting the sum(data) to string that’s where there are 4 auto decimals coming up

how do I trim the extra decimals from it?

left(toString(sum(Data)),locate(toString(sum(Data)),".",1)+1)
the +1 define how many decimal you want.

Thanks @ErikG , it’s working

Please mark the topic as solved.