Hi been two days trying to figure this out.
I have a decimal number eg 4.6584255
I want to get only the first number, in this case 4, i tried using substring(0,1) and got errors, tried using javascript math.floor but did not figure out how to implement it correctly.
Basically i am converting user input number to variable then / the variable with a number eg: 10 / 2.344 = x => save to x variable
Then i want x variable to be converter to a single number without the .xxx at the back
Don't know what's wrong tried multiple times

Error:
[20:27:09] Thread #1 : TypeError: Result of expression '(VAR_BETIT).substring' [undefined] is not a function. during execution of action 327956169