display value with comma
-
hello, how to display the value of a knob on a label?
I use Label1.set("text", value); and that gives me 0.100000002000000 . the number is not round and if I use Math.round, I get 1 2 3... except that my knob is set to -0.5 > 0.5. THANKS :) -
Math.round rounds to the next integer..
https://docs.hise.dev/scripting/scripting-api/math/index.html#round
so multiply your value by 100, round it and then divide by 100...
-
@Lindon
what an idiot I am. I didn't put the /100 in the right place ^^ thank you it works