variable length qml
I have a small question, like to know if someone can help me:
I leave here an example of what I intend to:
var value value = 7/3600 console.log(value)
And the result is: 0,0019444444444444, but I just want to see: 0,0019
is there any way to limit the number of digits of the variable?
Thanks a lot.
Call .toFixed(NUMBER) on the value that you want with the number of decimals that you need
Thank you! It works!