How to format number and display in Text field

Hi,

I have two Text which I use to display the result of a calculation.
Let’s say the result is 587.565659688
I wan to display only 2 and 4 places after the decimal points in each Text fields.

How can I format the number that will be displayed in Text field.

Thanks.

1 Like
.toFixed(4)
.toFixed(2)